Skip to content

Commit

Permalink
Always set user.main_user
Browse files Browse the repository at this point in the history
  • Loading branch information
therabidbanana committed Dec 14, 2010
1 parent f9a7016 commit 7fe96a4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def access_allowed?(packet)
if packet['user.id'] || packet['user.uid']
# Main_user can always log in (root access)
if main_user?(packet)
packet['user.main_user'] = true
unless packet['user', false]
# Create a user if one doesn't already exist
name = packet['user.info', {"name" => nil}]['name'] || "Main User"
Expand Down

0 comments on commit 7fe96a4

Please sign in to comment.