Show More
@@ -67,7 +67,6 class LoginController(BaseController): | |||||
67 | user_model = UserModel() |
|
67 | user_model = UserModel() | |
68 | c.auto_active = False |
|
68 | c.auto_active = False | |
69 | for perm in user_model.get_default().user_perms: |
|
69 | for perm in user_model.get_default().user_perms: | |
70 | print perm.permission.permission_name |
|
|||
71 | if perm.permission.permission_name == 'hg.register.auto_activate': |
|
70 | if perm.permission.permission_name == 'hg.register.auto_activate': | |
72 | c.auto_active = True |
|
71 | c.auto_active = True | |
73 | break |
|
72 | break |
@@ -124,8 +124,6 def fill_data(user): | |||||
124 | else: |
|
124 | else: | |
125 | user.is_authenticated = False |
|
125 | user.is_authenticated = False | |
126 | meta.Session.remove() |
|
126 | meta.Session.remove() | |
127 | from pprint import pprint |
|
|||
128 | pprint(user.permissions) |
|
|||
129 | return user |
|
127 | return user | |
130 |
|
128 | |||
131 | def fill_perms(user): |
|
129 | def fill_perms(user): |
General Comments 0
You need to be logged in to leave comments.
Login now