changeset 10801:fcfe2e50faab stable

Added support for 'everybody ' (using an asterisk) in user list.
author Elifarley Callado Coelho Cruz <elifarley@gmail.com>
date Mon, 29 Mar 2010 09:15:08 -0300
parents 49c109d037dd
children 6e4cf8319f54
files hgext/acl.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/acl.py	Tue Mar 30 02:42:21 2010 +0200
+++ b/hgext/acl.py	Mon Mar 29 09:15:08 2010 -0300
@@ -63,7 +63,7 @@
         return None
 
     pats = [pat for pat, users in ui.configitems(key)
-            if user in users.replace(',', ' ').split()]
+            if users == '*' or user in users.replace(',', ' ').split()]
     ui.debug('acl: %s enabled, %d entries for user %s\n' %
              (key, len(pats), user))
     if pats: