feat: public scope for api key
This commit is contained in:
parent
49425fb8fc
commit
2743ac6934
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ App::init()
|
|||
]);
|
||||
|
||||
$role = Auth::USER_ROLE_APPS;
|
||||
$scopes = \array_merge($roles[$role]['scopes'], $key->getAttribute('scopes', []));
|
||||
$scopes = \array_merge($roles[$role]['scopes'], $key->getAttribute('scopes', []), ['public']);
|
||||
|
||||
$expire = $key->getAttribute('expire');
|
||||
if (!empty($expire) && $expire < DateTime::formatTz(DateTime::now())) {
|
||||
|
|
Loading…
Reference in a new issue