Fix permission modal evaluation for wildcard permissions
This commit is contained in:
parent
3b3cd1ff91
commit
0aed0e3f08
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user