Skip to content

Commit

Permalink
[permission:debug] Remove unnecesary html tags to permission label (#…
Browse files Browse the repository at this point in the history
…2907)

* [permission:debug] WIP new command

* [permission:debug] Add service

* [permission:debug] List all permissions and filter by user role

* [permission:debug] Add better error handle and cleanup

* [permission:debug] Remove unnecesary html tags to permission label
  • Loading branch information
edutrul authored and enzolutions committed Nov 10, 2016
1 parent d404ec9 commit a2a3523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/PermissionDebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
foreach ($permissions as $permission_name => $permission) {
$tableRows[$permission_name] = [
$permission_name,
$permission['title']->__toString()
strip_tags($permission['title']->__toString())
];
}

Expand All @@ -82,7 +82,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (in_array($permission_name, $user_permission)) {
$tableRows[$permission_name] = [
$permission_name,
$permission['title']->__toString()
strip_tags($permission['title']->__toString())
];
}
}
Expand Down

0 comments on commit a2a3523

Please sign in to comment.