diff --git a/lib/security/Permission.inc b/lib/security/Permission.inc index 0a9454a..44f7d6c 100644 --- a/lib/security/Permission.inc +++ b/lib/security/Permission.inc @@ -53,6 +53,12 @@ class Permission { * @return boolean true if the current user has document write permission, false otherwise and set $_SESSION["errorMessage"] */ function userHasDocumentWritePermission($oDocument) { + + if ($oDocument->getImmutable()) + { + return false; + } + $oUser = User::get($_SESSION["userID"]); $oPermission = KTPermission::getByName('ktcore.permissions.write'); diff --git a/plugins/search2/reporting/templates/rescheduledocuments.smarty b/plugins/search2/reporting/templates/rescheduledocuments.smarty index 9038956..77bdbf9 100644 --- a/plugins/search2/reporting/templates/rescheduledocuments.smarty +++ b/plugins/search2/reporting/templates/rescheduledocuments.smarty @@ -1,6 +1,6 @@

{i18n}Reschedule All Documents{/i18n}

{i18n}This function allows you to re-index your entire repository.{/i18n}

-

{i18n}Please note that rescheduling all documents may take a long time, depending on the size if the repository.{/i18n} +

{i18n}Please note that rescheduling all documents may take a long time, depending on the size of the repository.{/i18n}