Skip to content

Commit b06cacf

Browse files
authored
Simplify permission check for media access
1 parent d672c87 commit b06cacf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/QuickNavigation/ApiFunction/MediaSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function execute()
4141
$types = rex_request('types', 'string', '');
4242

4343
// Berechtigung prüfen
44-
if (!rex::getUser() || !rex::getUser()->hasPerm('media[read]')) {
44+
if (!rex::getUser()) {
4545
$result = [
4646
'success' => false,
4747
'error' => 'Keine Berechtigung'

0 commit comments

Comments
 (0)