mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
add seletor for createPermission
This commit is contained in:
@@ -360,3 +360,11 @@ export function getModifyPermissionFailure(
|
||||
namespace + "/" + name + "/" + permissionname
|
||||
);
|
||||
}
|
||||
|
||||
export function hasCreatePermission(
|
||||
state: Object,
|
||||
namespace: string,
|
||||
name: string
|
||||
) {
|
||||
return state.permissions[namespace + "/" + name].createPermission;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user