|
@@ -6,6 +6,7 @@ import tg
|
6
|
6
|
from tg import expose, flash, require, url, lurl, request, redirect, tmpl_context
|
7
|
7
|
from tg.i18n import ugettext as _, lazy_ugettext as l_
|
8
|
8
|
from tg import predicates
|
|
9
|
+from pboard.lib.auth import can_read
|
9
|
10
|
|
10
|
11
|
import tgext.admin.tgadminconfig as tgat
|
11
|
12
|
import tgext.admin.controller as tgac
|
|
@@ -113,7 +114,8 @@ class RootController(BaseController):
|
113
|
114
|
|
114
|
115
|
|
115
|
116
|
@expose('pboard.templates.document')
|
116
|
|
- @require(predicates.in_group('user', msg=l_('Please login to access this page')))
|
|
117
|
+ #@require(predicates.in_group('user', msg=l_('Please login to access this page')))
|
|
118
|
+ @require(can_read())
|
117
|
119
|
def document(self, node=0, version=0, came_from=lurl('/'), highlight=''):
|
118
|
120
|
"""show the user dashboard"""
|
119
|
121
|
loCurrentUser = pld.PODStaticController.getCurrentUser()
|