File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ public function handle()
40
40
->when ($ teamsEnabled , fn ($ q ) => $ q ->orderBy ($ team_key ))
41
41
->orderBy ('name ' )->get ()->mapWithKeys (fn ($ role ) => [
42
42
$ role ->name .'_ ' .($ teamsEnabled ? ($ role ->$ team_key ?: '' ) : '' ) => [
43
- 'permissions ' => $ role ->permissions ->pluck (' id ' ),
43
+ 'permissions ' => $ role ->permissions ->pluck ($ permissionClass -> getKeyName () ),
44
44
$ team_key => $ teamsEnabled ? $ role ->$ team_key : null ,
45
45
],
46
46
]);
47
47
48
- $ permissions = $ permissionClass ::whereGuardName ($ guard )->orderBy ('name ' )->pluck ('name ' , ' id ' );
48
+ $ permissions = $ permissionClass ::whereGuardName ($ guard )->orderBy ('name ' )->pluck ('name ' , $ permissionClass -> getKeyName () );
49
49
50
50
$ body = $ permissions ->map (fn ($ permission , $ id ) => $ roles ->map (
51
51
fn (array $ role_data ) => $ role_data ['permissions ' ]->contains ($ id ) ? ' ✔ ' : ' · '
You can’t perform that action at this time.
0 commit comments