1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 15:55:14 +00:00

Update AuthServiceProvider

This commit is contained in:
Daniel Supernault 2024-02-09 20:54:17 -07:00
parent 62b9eef805
commit 7a7b4bc717
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -31,11 +31,6 @@ class AuthServiceProvider extends ServiceProvider
if(config('instance.oauth.pat.enabled')) {
Passport::personalAccessClientId(config('instance.oauth.pat.id'));
}
Passport::setDefaultScope([
'read',
'write',
'follow',
]);
Passport::tokensCan([
'read' => 'Full read access to your account',
@ -45,6 +40,12 @@ class AuthServiceProvider extends ServiceProvider
'admin:write' => 'Modify all data on the server',
'push' => 'Receive your push notifications'
]);
Passport::setDefaultScope([
'read',
'write',
'follow',
]);
}
// Gate::define('viewWebSocketsDashboard', function ($user = null) {