[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.11-22-g7405da0

Shawn Moore shawn at bestpractical.com
Thu Jun 4 16:56:56 EDT 2015


The branch, 4.2-trunk has been updated
       via  7405da03ef50bbc7cab1126c0be1e3697a3fdffa (commit)
      from  a9fe2abcbf4795f14b2ad96a518050fe4c7cc244 (commit)

Summary of changes:
 share/html/Search/Elements/EditSearches | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 7405da03ef50bbc7cab1126c0be1e3697a3fdffa
Author: Christian Loos <cloos at netcologne.de>
Date:   Wed May 27 14:17:25 2015 +0200

    show update button only if the user has sufficient rights

diff --git a/share/html/Search/Elements/EditSearches b/share/html/Search/Elements/EditSearches
index 0a55e0d..c738af8 100644
--- a/share/html/Search/Elements/EditSearches
+++ b/share/html/Search/Elements/EditSearches
@@ -67,9 +67,9 @@
 % }
 </nobr>
 % }
-% if ( $Object && $Object->Id ) {
+% if ( $Object && $Object->Id && $Object->CurrentUserHasRight('update') ) {
 <input type="submit" class="button" id="SavedSearchSave" name="SavedSearchSave"   value="<%loc('Update')%>" />
-% } else {
+% } elsif ( !$Object ) {
 <input type="submit" class="button" id="SavedSearchSave" name="SavedSearchSave"   value="<%loc('Save')%>" />
 %}
 % }

-----------------------------------------------------------------------


More information about the rt-commit mailing list