Skip to content

Commit

Permalink
(fixes)
Browse files Browse the repository at this point in the history
  • Loading branch information
ictbeheer committed Aug 6, 2024
1 parent 3cd12b6 commit 6d2e6bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
14 changes: 1 addition & 13 deletions config/user-roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@

return [

/*
|--------------------------------------------------------------------------
| UserRoles Package
|--------------------------------------------------------------------------
|
| Configuration files provide a great way to customize your package.
|
| In most cases, you should provide sane defaults and publishing the config
| should be optional.
|
|
*/
'prefix' => 'yard',
'roles' => [
'superuser' => [
Expand All @@ -35,7 +23,7 @@
'page',
],
'cap_groups' => [
'gravity_forms',
'gravityforms',
'wpseo',
],
],
Expand Down
4 changes: 2 additions & 2 deletions src/UserRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private function setRolesForSite(): void
Assert::isArray($groupCaps);

foreach ($groupCaps as $cap) {
$capabilities['cap'] = true;
$capabilities[$cap] = true;
}
}

Expand All @@ -78,7 +78,7 @@ private function setRolesForSite(): void
add_role(
$prefix . '_' . $role,
$properties['display_name'],
$properties['capabilities']
$capabilities
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/UserRolesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function configurePackage(Package $package): void
{
$package
->name('wp-user-roles')
->hasConfigFile()
->hasConfigFile('user-roles')
->hasCommand(UserRolesCommand::class);
}

Expand Down

0 comments on commit 6d2e6bd

Please sign in to comment.