diff --git a/scribeengine/model/classes.py b/scribeengine/model/classes.py index 69c75d5..3c2bef0 100644 --- a/scribeengine/model/classes.py +++ b/scribeengine/model/classes.py @@ -108,6 +108,12 @@ class User(BaseModel): if perm == permission: return True return False + elif isinstance(permission, list): + for role in self.roles: + for perm in role.permissions: + if perm.name in permission: + return True + return False else: return False diff --git a/scribeengine/templates/sidebar.mako b/scribeengine/templates/sidebar.mako index 04283a2..81fd3f7 100644 --- a/scribeengine/templates/sidebar.mako +++ b/scribeengine/templates/sidebar.mako @@ -26,18 +26,31 @@ % endif
  • -

    Account

    +

    Meta