private boolean isAdmin(String siteId) { if (siteId == null) { throw new java.lang.RuntimeException("isAdmin() requires non-null siteId"); } if (!"!admin".equals(siteId)) return false; return siteService.allowUpdateSite(siteId); }
/** {@inheritDoc} */ public boolean hasAdmin() { boolean superUser = securityService.isSuperUser(); return (superUser) || ("true" .equals( serverConfigurationService.getString("search.allow.maintain.admin", "false")) && siteService.allowUpdateSite(siteId)); }
public static boolean allowUpdateSite(java.lang.String param0) { org.sakaiproject.site.api.SiteService service = getInstance(); if (service == null) return false; return service.allowUpdateSite(param0); }