refs #4074 @2h change the acl service to take in consideration diferent permission types
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
1572f21901
commit
521586caed
|
@ -43,7 +43,15 @@ class AclService {
|
|||
hasAnyACL(model, property, accessType) {
|
||||
if (this.acls) {
|
||||
if (this.acls[model]) {
|
||||
if (this.acls[model]['*']) {
|
||||
if (this.acls[model]['*']['*'])
|
||||
return true;
|
||||
if (this.acls[model]['*'][accessType])
|
||||
return true;
|
||||
}
|
||||
if (this.acls[model][property]) {
|
||||
if (this.acls[model][property]['*'])
|
||||
return true;
|
||||
if (this.acls[model][property][accessType])
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
"type": "array"
|
||||
},
|
||||
"defaultPriority": {
|
||||
"type": "int"
|
||||
"type": "number"
|
||||
},
|
||||
"defaultTag": {
|
||||
"type": "int"
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
|
|
Loading…
Reference in New Issue