From a557e989278a181362bcc6d2fe3ff70a9bbc912c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 5 Apr 2023 14:55:28 +0200 Subject: [PATCH] show access rights only if unlimited access --- views/bootstrap/class.ViewDocument.php | 2 +- views/bootstrap/class.ViewFolder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 708e25546..0d2191f49 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -432,7 +432,7 @@ $(document).ready( function() { isAdmin() || $document->getAccessMode($user) > M_READ) { + if($document->getAccessMode($user) == M_ALL) { echo ""; echo "".getMLText('default_access').":"; echo "".$this->getAccessModeText($document->getDefaultAccess()).""; diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php index 9cfc7ab47..bc39917a5 100644 --- a/views/bootstrap/class.ViewFolder.php +++ b/views/bootstrap/class.ViewFolder.php @@ -288,7 +288,7 @@ $('body').on('click', '.order-btn', function(ev) { echo ""; } - if($user->isAdmin() || $folder->getAccessMode($user) > M_READ) { + if($folder->getAccessMode($user) == M_ALL) { echo ""; echo "".getMLText('default_access').":"; echo "".$this->getAccessModeText($folder->getDefaultAccess())."";