Merge pull request #15272 from snipe/fixes/added_selectlist_permission_for_reports
Some checks are pending
Crowdin Action / upload-sources-to-crowdin (push) Waiting to run
Docker images (Alpine) / docker (push) Waiting to run
Docker images / docker (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Waiting to run
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Waiting to run

Added reporting-only access for selectlists
This commit is contained in:
snipe 2024-08-12 20:47:17 +01:00 committed by GitHub
commit e6106aa7cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -230,7 +230,8 @@ class AuthServiceProvider extends ServiceProvider
|| $user->can('update', Accessory::class) || $user->can('update', Accessory::class)
|| $user->can('create', Accessory::class) || $user->can('create', Accessory::class)
|| $user->can('update', User::class) || $user->can('update', User::class)
|| $user->can('create', User::class); || $user->can('create', User::class)
|| ($user->hasAccess('reports.view'));
}); });