Show More
@@ -43,7 +43,9 b' class BaseAppView(object):' | |||||
43 | self._rhodecode_user = request.user |
|
43 | self._rhodecode_user = request.user | |
44 |
|
44 | |||
45 | def _get_local_tmpl_context(self): |
|
45 | def _get_local_tmpl_context(self): | |
46 |
|
|
46 | c = TemplateArgs() | |
|
47 | c.auth_user = self.request.user | |||
|
48 | return c | |||
47 |
|
49 | |||
48 | def _register_global_c(self, tmpl_args): |
|
50 | def _register_global_c(self, tmpl_args): | |
49 | """ |
|
51 | """ |
@@ -45,7 +45,6 b' class AdminUsersView(BaseAppView):' | |||||
45 |
|
45 | |||
46 | def load_default_context(self): |
|
46 | def load_default_context(self): | |
47 | c = self._get_local_tmpl_context() |
|
47 | c = self._get_local_tmpl_context() | |
48 | c.auth_user = self.request.user |
|
|||
49 | c.allow_scoped_tokens = self.ALLOW_SCOPED_TOKENS |
|
48 | c.allow_scoped_tokens = self.ALLOW_SCOPED_TOKENS | |
50 | self._register_global_c(c) |
|
49 | self._register_global_c(c) | |
51 | return c |
|
50 | return c |
@@ -43,7 +43,6 b' class MyAccountView(BaseAppView):' | |||||
43 | def load_default_context(self): |
|
43 | def load_default_context(self): | |
44 | c = self._get_local_tmpl_context() |
|
44 | c = self._get_local_tmpl_context() | |
45 |
|
45 | |||
46 | c.auth_user = self.request.user |
|
|||
47 | c.user = c.auth_user.get_instance() |
|
46 | c.user = c.auth_user.get_instance() | |
48 | c.allow_scoped_tokens = self.ALLOW_SCOPED_TOKENS |
|
47 | c.allow_scoped_tokens = self.ALLOW_SCOPED_TOKENS | |
49 | self._register_global_c(c) |
|
48 | self._register_global_c(c) |
General Comments 0
You need to be logged in to leave comments.
Login now