Skip to content
Snippets Groups Projects
Verified Commit 7b33adfd authored by Janis Streib's avatar Janis Streib :owl:
Browse files

FIX: tokens: catch non-existing permissions (fixes #738)

parent 9c165a13
Branches
No related tags found
No related merge requests found
Pipeline #361237 passed with warnings
......@@ -476,6 +476,9 @@ export default {
},
role_list_has_permission(role_list, permission_name) {
return role_list.some(role => {
if (!(permission_name in this.permissions)) {
return false
}
return this.permissions[permission_name].hierarchy_gfk_list.some(gfk => {
return role.gpk === gfk
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment