Skip to content

can not go to /admin and "you are not admin" message flashes on screen before redirecting back to home.  #3

@tomvolek

Description

@tomvolek

After installing the package, If I try to go to /admin , I get the message "you can not view this page because you are not admin " . However if I hit the back button, I do get to /admin and can see all my collections.

The logged in user has a role admin , as I can test it with :
{{#if isInRole 'admin' 'default-group'}}

I am admin........


{{/if}}

However the same block of code in {{#if isinRole 'admin'}} does not return True. in file yadmin/lib/client/html/admin_layouts.html.

{{#if AdminConfig}} {{#if isInRole 'admin'}}

Any thoughts ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions