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