3
0

Fix permission modal evaluation for wildcard permissions

This commit is contained in:
Jože Fortun 2024-01-12 10:04:25 +01:00
parent 3b3cd1ff91
commit 0aed0e3f08

View File

@ -515,12 +515,12 @@ export default {
const inherit = 'inherit'
// merges roleRules (subset) with list of all permissions
const findCurrent = ({ resource, operation }) => {
const findCurrent = ({ operation }) => {
if (!rr) {
return inherit
}
let { resolution, access = inherit } = (rr.find(r => r.resource === resource && r.operation === operation) || {})
let { resolution, access = inherit } = (rr.find(r => r.operation === operation) || {})
if (resolution === 'unknown-context') {
access = 'unknown-context'