From 16e22ceafdc9e040a189c531f685f2af368ea74f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 3 Jun 2014 17:51:44 +0200 Subject: [PATCH] check if expiration may be set --- views/bootstrap/class.Bootstrap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index b8026ca3a..3e6434782 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -410,9 +410,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo "
  • ".getMLText("unlock_document")."
  • "; echo "
  • ".getMLText("edit_document_props")."
  • "; echo "
  • ".getMLText("move_document")."
  • "; - echo "
  • ".getMLText("expires")."
  • "; } } + if($this->params['accessobject']->maySetExpires()) { + echo "
  • ".getMLText("expires")."
  • "; + } } if ($accessMode == M_ALL) { echo "
  • ".getMLText("rm_document")."
  • ";