mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update AuthServiceProvider
This commit is contained in:
parent
62b9eef805
commit
7a7b4bc717
1 changed files with 6 additions and 5 deletions
|
@ -31,11 +31,6 @@ class AuthServiceProvider extends ServiceProvider
|
||||||
if(config('instance.oauth.pat.enabled')) {
|
if(config('instance.oauth.pat.enabled')) {
|
||||||
Passport::personalAccessClientId(config('instance.oauth.pat.id'));
|
Passport::personalAccessClientId(config('instance.oauth.pat.id'));
|
||||||
}
|
}
|
||||||
Passport::setDefaultScope([
|
|
||||||
'read',
|
|
||||||
'write',
|
|
||||||
'follow',
|
|
||||||
]);
|
|
||||||
|
|
||||||
Passport::tokensCan([
|
Passport::tokensCan([
|
||||||
'read' => 'Full read access to your account',
|
'read' => 'Full read access to your account',
|
||||||
|
@ -45,6 +40,12 @@ class AuthServiceProvider extends ServiceProvider
|
||||||
'admin:write' => 'Modify all data on the server',
|
'admin:write' => 'Modify all data on the server',
|
||||||
'push' => 'Receive your push notifications'
|
'push' => 'Receive your push notifications'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Passport::setDefaultScope([
|
||||||
|
'read',
|
||||||
|
'write',
|
||||||
|
'follow',
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gate::define('viewWebSocketsDashboard', function ($user = null) {
|
// Gate::define('viewWebSocketsDashboard', function ($user = null) {
|
||||||
|
|
Loading…
Reference in a new issue