Returns True if the current user is in admin usergroup.
(self)
| 152 | GET = POST = delegate |
| 153 | |
| 154 | def is_admin(self): |
| 155 | """Returns True if the current user is in admin usergroup.""" |
| 156 | return context.user and context.user.key in [m.key for m in web.ctx.site.get("/usergroup/admin").members] |
| 157 | |
| 158 | |
| 159 | class admin_index: |
no test coverage detected