diff --git a/src/main/java/info/bukova/isspst/ui/settings/GlobalSettingsVM.java b/src/main/java/info/bukova/isspst/ui/settings/GlobalSettingsVM.java index 4e5db21c..2dca91f7 100644 --- a/src/main/java/info/bukova/isspst/ui/settings/GlobalSettingsVM.java +++ b/src/main/java/info/bukova/isspst/ui/settings/GlobalSettingsVM.java @@ -1,5 +1,6 @@ package info.bukova.isspst.ui.settings; +import info.bukova.isspst.Constants; import info.bukova.isspst.data.Address; import info.bukova.isspst.data.Requirement; import info.bukova.isspst.data.SettingsData; @@ -8,6 +9,7 @@ import info.bukova.isspst.mail.MailMessage; import info.bukova.isspst.services.settings.GlobalSettingsService; import info.bukova.isspst.sort.ReflectionTools; import info.bukova.isspst.ui.LocaleConverter; +import info.bukova.isspst.ui.SecurityHelper; import java.util.ArrayList; import java.util.Collections; @@ -52,7 +54,7 @@ public class GlobalSettingsVM { } public boolean isCanSave() { - return true; + return SecurityHelper.isAllGranted(Constants.ROLE_ADMIN); } public LocaleConverter getLocConverter() { diff --git a/src/main/webapp/settings/global/address.zul b/src/main/webapp/settings/global/address.zul index bad5eb7d..70dbf9d9 100644 --- a/src/main/webapp/settings/global/address.zul +++ b/src/main/webapp/settings/global/address.zul @@ -8,37 +8,37 @@