Skip to content

Commit

Permalink
Update process prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
vncore committed May 6, 2022
1 parent 5321843 commit 02324f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/Controllers/Auth/PermissionController.php
Expand Up @@ -18,7 +18,7 @@ public function __construct()

foreach ($routes as $route) {
if (Str::startsWith($route->uri(), SC_ADMIN_PREFIX)) {
$prefix = SC_ADMIN_PREFIX?$route->getPrefix():ltrim($route->getPrefix(), '/');
$prefix = ltrim($route->getPrefix(), '/');
$routeAdmin[$prefix] = [
'uri' => 'ANY::' . $prefix . '/*',
'name' => $prefix . '/*',
Expand Down

0 comments on commit 02324f7

Please sign in to comment.