These are chat archives for inveniosoftware/invenio

28th
Apr 2016
Øystein Blixhavn
@blixhavn
Apr 28 2016 13:25
Thanks @lnielsen :)
in invenio3 templates, can you access the user object? E.g. to check whether a user has certain privileges (to show/hide a link)
Lars Holm Nielsen
@lnielsen
Apr 28 2016 13:39
current_user
Øystein Blixhavn
@blixhavn
Apr 28 2016 13:56
I guess it's current_user.roles that's the key here?
Lars Holm Nielsen
@lnielsen
Apr 28 2016 15:40
permissions you should check with flask-principal….not sure there’s any examples of this yet
in templates that is