comparison mercurial/hgweb/common.py @ 19951:d51c4d85ec23 stable

spelling: random spell checker fixes
author Mads Kiilerich <madski@unity3d.com>
date Thu, 24 Oct 2013 01:49:56 +0800
parents 7d31f2e42a8a
children a111e460318a
comparison
equal deleted inserted replaced
19950:cce7ab960312 19951:d51c4d85ec23
20 20
21 def ismember(ui, username, userlist): 21 def ismember(ui, username, userlist):
22 """Check if username is a member of userlist. 22 """Check if username is a member of userlist.
23 23
24 If userlist has a single '*' member, all users are considered members. 24 If userlist has a single '*' member, all users are considered members.
25 Can be overriden by extensions to provide more complex authorization 25 Can be overridden by extensions to provide more complex authorization
26 schemes. 26 schemes.
27 """ 27 """
28 return userlist == ['*'] or username in userlist 28 return userlist == ['*'] or username in userlist
29 29
30 def checkauthz(hgweb, req, op): 30 def checkauthz(hgweb, req, op):