mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
output access rights even if inherited
This commit is contained in:
parent
39de3db510
commit
877f5c80ed
|
@ -229,17 +229,18 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if($user->isAdmin()) {
|
if($user->isAdmin()) {
|
||||||
if($document->inheritsAccess()) {
|
|
||||||
echo "<tr>";
|
|
||||||
echo "<td>".getMLText("access_mode").":</td>\n";
|
|
||||||
echo "<td>";
|
|
||||||
echo getMLText("inherited");
|
|
||||||
echo "</tr>";
|
|
||||||
} else {
|
|
||||||
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>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
if($document->inheritsAccess()) {
|
||||||
|
echo "<tr>";
|
||||||
|
echo "<td>".getMLText("access_mode").":</td>\n";
|
||||||
|
echo "<td>";
|
||||||
|
echo getMLText("inherited")."<br />";
|
||||||
|
$this->printAccessList($document);
|
||||||
|
echo "</tr>";
|
||||||
|
} else {
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td>".getMLText('access_mode').":</td>";
|
echo "<td>".getMLText('access_mode').":</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
|
|
@ -185,17 +185,18 @@ function folderSelected(id, name) {
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
|
||||||
if($user->isAdmin()) {
|
if($user->isAdmin()) {
|
||||||
if($folder->inheritsAccess()) {
|
|
||||||
echo "<tr>";
|
|
||||||
echo "<td>".getMLText("access_mode").":</td>\n";
|
|
||||||
echo "<td>";
|
|
||||||
echo getMLText("inherited");
|
|
||||||
echo "</tr>";
|
|
||||||
} else {
|
|
||||||
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>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
if($folder->inheritsAccess()) {
|
||||||
|
echo "<tr>";
|
||||||
|
echo "<td>".getMLText("access_mode").":</td>\n";
|
||||||
|
echo "<td>";
|
||||||
|
echo getMLText("inherited")."<br />";
|
||||||
|
$this->printAccessList($folder);
|
||||||
|
echo "</tr>";
|
||||||
|
} else {
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td>".getMLText('access_mode').":</td>";
|
echo "<td>".getMLText('access_mode').":</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user