mirror of
https://github.com/coollabsio/coolify.git
synced 2025-12-28 05:34:50 +00:00
fix: update token permission check from 'write' to 'root'
This commit is contained in:
parent
d2ff8c6521
commit
09746aa877
@ -40,7 +40,7 @@ return new class extends Migration
|
||||
$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 New Issue
Block a user