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);
 }
Esempio n. 2
0
 /** {@inheritDoc} */
 public boolean hasAdmin() {
   boolean superUser = securityService.isSuperUser();
   return (superUser)
       || ("true"
               .equals(
                   serverConfigurationService.getString("search.allow.maintain.admin", "false"))
           && siteService.allowUpdateSite(siteId));
 }
Esempio n. 3
0
  public static boolean allowUpdateSite(java.lang.String param0) {
    org.sakaiproject.site.api.SiteService service = getInstance();
    if (service == null) return false;

    return service.allowUpdateSite(param0);
  }