Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
1321a74c
Unverified
Commit
1321a74c
authored
Oct 10, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming class name for clarity
parent
3ae3f77f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
GrantModulePermissionsCommand.php
Modules/User/Console/GrantModulePermissionsCommand.php
+1
-1
UserServiceProvider.php
Modules/User/Providers/UserServiceProvider.php
+2
-2
No files found.
Modules/User/Console/Grant
Ro
lePermissionsCommand.php
→
Modules/User/Console/Grant
Modu
lePermissionsCommand.php
View file @
1321a74c
...
@@ -6,7 +6,7 @@ use Illuminate\Console\Command;
...
@@ -6,7 +6,7 @@ use Illuminate\Console\Command;
use
Modules\User\Permissions\PermissionsAdder
;
use
Modules\User\Permissions\PermissionsAdder
;
use
Symfony\Component\Console\Input\InputArgument
;
use
Symfony\Component\Console\Input\InputArgument
;
class
Grant
Ro
lePermissionsCommand
extends
Command
class
Grant
Modu
lePermissionsCommand
extends
Command
{
{
protected
$name
=
'asgard:user:grant-permissions'
;
protected
$name
=
'asgard:user:grant-permissions'
;
protected
$description
=
'Grant all the permissions to the admin role of given module'
;
protected
$description
=
'Grant all the permissions to the admin role of given module'
;
...
...
Modules/User/Providers/UserServiceProvider.php
View file @
1321a74c
...
@@ -8,7 +8,7 @@ use Illuminate\Support\ServiceProvider;
...
@@ -8,7 +8,7 @@ use Illuminate\Support\ServiceProvider;
use
Modules\Core\Events\BuildingSidebar
;
use
Modules\Core\Events\BuildingSidebar
;
use
Modules\Core\Traits\CanGetSidebarClassForModule
;
use
Modules\Core\Traits\CanGetSidebarClassForModule
;
use
Modules\Core\Traits\CanPublishConfiguration
;
use
Modules\Core\Traits\CanPublishConfiguration
;
use
Modules\User\Console\Grant
Ro
lePermissionsCommand
;
use
Modules\User\Console\Grant
Modu
lePermissionsCommand
;
use
Modules\User\Contracts\Authentication
;
use
Modules\User\Contracts\Authentication
;
use
Modules\User\Entities\UserToken
;
use
Modules\User\Entities\UserToken
;
use
Modules\User\Events\Handlers\RegisterUserSidebar
;
use
Modules\User\Events\Handlers\RegisterUserSidebar
;
...
@@ -68,7 +68,7 @@ class UserServiceProvider extends ServiceProvider
...
@@ -68,7 +68,7 @@ class UserServiceProvider extends ServiceProvider
$this
->
getSidebarClassForModule
(
'user'
,
RegisterUserSidebar
::
class
)
$this
->
getSidebarClassForModule
(
'user'
,
RegisterUserSidebar
::
class
)
);
);
$this
->
commands
([
$this
->
commands
([
Grant
Ro
lePermissionsCommand
::
class
,
Grant
Modu
lePermissionsCommand
::
class
,
]);
]);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment