File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ public function restoreRoles()
1717 ],
1818 Role::STOREADMIN => [
1919 'label ' => __ ( 'Store Administrator ' ),
20- 'dashid ' => Role::DASHID_STORE
20+ 'dashid ' => Role::DASHID_STORE ,
2121 ],
2222 Role::STORECASHIER => [
2323 'label ' => __ ( 'Store Cashier ' ),
24- 'dashid ' => Role::DASHID_CASHIER
24+ 'dashid ' => Role::DASHID_CASHIER ,
2525 ],
2626 Role::USER => [
2727 'label ' => __ ( 'User ' ),
28- 'dashid ' => Role::DASHID_DEFAULT
28+ 'dashid ' => Role::DASHID_DEFAULT ,
2929 ],
3030 ];
3131
@@ -37,6 +37,7 @@ public function restoreRoles()
3737 $ role ->namespace = $ roleNamespace ;
3838 $ role ->name = $ rolesLabels [ $ roleNamespace ][ 'name ' ];
3939 $ role ->dashid = $ rolesLabels [ $ roleNamespace ][ 'dashid ' ];
40+ $ role ->locked = true ;
4041 $ role ->save ();
4142 }
4243 }
You can’t perform that action at this time.
0 commit comments