Skip to content

Commit f35ed88

Browse files
author
Nur Alam
committed
permission duplicate bug fixed
1 parent 28f0320 commit f35ed88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/RoutePermissionGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function generate()
7373
}
7474
}
7575

76-
$tempPluckRoutes = Arr::pluck($tempRoutes, 'slug');
76+
$tempPluckRoutes = Arr::pluck($tempRoutes, 'name');
7777

7878
// check is the current route store in temp routes in order to avoid duplicacy
7979
if (in_array($routeName, $tempPluckRoutes)) {

0 commit comments

Comments
 (0)