mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
show access rights of folder/document if user has write access
This commit is contained in:
parent
03212d7bbc
commit
aea42b9bf5
|
@ -10,6 +10,7 @@
|
|||
- use standard output for document rows on MyDocuments page
|
||||
- new seeddms logo
|
||||
- fix moving clipboard (Closes: #473)
|
||||
- show access rights of folder/document if user has write access
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.16
|
||||
|
|
|
@ -244,7 +244,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
</tr>
|
||||
<?php
|
||||
}
|
||||
if($user->isAdmin()) {
|
||||
if($user->isAdmin() || $document->getAccessMode($user) > M_READ) {
|
||||
echo "<tr>";
|
||||
echo "<td>".getMLText('default_access').":</td>";
|
||||
echo "<td>".$this->getAccessModeText($document->getDefaultAccess())."</td>";
|
||||
|
|
|
@ -262,7 +262,7 @@ $('body').on('click', '.order-btn', function(ev) {
|
|||
echo "</tr>";
|
||||
}
|
||||
|
||||
if($user->isAdmin()) {
|
||||
if($user->isAdmin() || $folder->getAccessMode($user) > M_READ) {
|
||||
echo "<tr>";
|
||||
echo "<td>".getMLText('default_access').":</td>";
|
||||
echo "<td>".$this->getAccessModeText($folder->getDefaultAccess())."</td>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user