fix: update token permission check from 'write' to 'root'
This commit is contained in:
parent
d2ff8c6521
commit
09746aa877
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ public function down(): void
|
|||
$tokens = PersonalAccessToken::all();
|
||||
foreach ($tokens as $token) {
|
||||
$abilities = collect();
|
||||
if (in_array('write', $token->abilities)) {
|
||||
if (in_array('root', $token->abilities)) {
|
||||
$abilities->push('*');
|
||||
} else {
|
||||
if (in_array('read', $token->abilities)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue