mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
cs: Second part - ignore test/app
subdirectory.
This commit is contained in:
@@ -358,19 +358,19 @@ class PermissionsGroupController extends AbstractController
|
||||
usort(
|
||||
$roleScopes,
|
||||
function (RoleScope $a, RoleScope $b) use ($translatableStringHelper) {
|
||||
if ($a->getScope() === null) {
|
||||
return 1;
|
||||
}
|
||||
if ($a->getScope() === null) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ($b->getScope() === null) {
|
||||
return +1;
|
||||
}
|
||||
if ($b->getScope() === null) {
|
||||
return +1;
|
||||
}
|
||||
|
||||
return strcmp(
|
||||
$translatableStringHelper->localize($a->getScope()->getName()),
|
||||
$translatableStringHelper->localize($b->getScope()->getName())
|
||||
);
|
||||
}
|
||||
return strcmp(
|
||||
$translatableStringHelper->localize($a->getScope()->getName()),
|
||||
$translatableStringHelper->localize($b->getScope()->getName())
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
// sort role scope by title
|
||||
@@ -526,8 +526,7 @@ class PermissionsGroupController extends AbstractController
|
||||
private function createDeleteRoleScopeForm(
|
||||
PermissionsGroup $permissionsGroup,
|
||||
RoleScope $roleScope
|
||||
)
|
||||
{
|
||||
) {
|
||||
return $this->createFormBuilder()
|
||||
->setAction($this->generateUrl(
|
||||
'admin_permissionsgroup_delete_role_scope',
|
||||
@@ -571,12 +570,12 @@ class PermissionsGroupController extends AbstractController
|
||||
$expandedRoles[$roleScope->getRole()] =
|
||||
array_map(
|
||||
function (Role $role) {
|
||||
return $role->getRole();
|
||||
},
|
||||
return $role->getRole();
|
||||
},
|
||||
$this->roleHierarchy
|
||||
->getReachableRoles(
|
||||
[new Role($roleScope->getRole())]
|
||||
)
|
||||
->getReachableRoles(
|
||||
[new Role($roleScope->getRole())]
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user