|
|
@ -109,7 +109,7 @@ export class PermissionHandler { |
|
|
|
this.permissions = this._getFromLocal() |
|
|
|
this.permissions = this._getFromLocal() |
|
|
|
if (!this.permissions[to.name]) this.permissions[to.name] = {} |
|
|
|
if (!this.permissions[to.name]) this.permissions[to.name] = {} |
|
|
|
if (!this.permissions[to.name][from.name]) return this.openPermission(from, to) |
|
|
|
if (!this.permissions[to.name][from.name]) return this.openPermission(from, to) |
|
|
|
|
|
|
|
|
|
|
|
const { allow, hash } = this.permissions[to.name][from.name] |
|
|
|
const { allow, hash } = this.permissions[to.name][from.name] |
|
|
|
if (!allow) { |
|
|
|
if (!allow) { |
|
|
|
const warning = notAllowWarning(from, to) |
|
|
|
const warning = notAllowWarning(from, to) |
|
|
|