show access rights of folder/document if user has write access

This commit is contained in:
Uwe Steinmann 2020-05-19 17:57:34 +02:00
parent 03212d7bbc
commit aea42b9bf5
3 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@
- use standard output for document rows on MyDocuments page - use standard output for document rows on MyDocuments page
- new seeddms logo - new seeddms logo
- fix moving clipboard (Closes: #473) - fix moving clipboard (Closes: #473)
- show access rights of folder/document if user has write access
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 5.1.16 Changes in version 5.1.16

View File

@ -244,7 +244,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
</tr> </tr>
<?php <?php
} }
if($user->isAdmin()) { if($user->isAdmin() || $document->getAccessMode($user) > M_READ) {
echo "<tr>"; echo "<tr>";
echo "<td>".getMLText('default_access').":</td>"; echo "<td>".getMLText('default_access').":</td>";
echo "<td>".$this->getAccessModeText($document->getDefaultAccess())."</td>"; echo "<td>".$this->getAccessModeText($document->getDefaultAccess())."</td>";

View File

@ -262,7 +262,7 @@ $('body').on('click', '.order-btn', function(ev) {
echo "</tr>"; echo "</tr>";
} }
if($user->isAdmin()) { if($user->isAdmin() || $folder->getAccessMode($user) > M_READ) {
echo "<tr>"; echo "<tr>";
echo "<td>".getMLText('default_access').":</td>"; echo "<td>".getMLText('default_access').":</td>";
echo "<td>".$this->getAccessModeText($folder->getDefaultAccess())."</td>"; echo "<td>".$this->getAccessModeText($folder->getDefaultAccess())."</td>";