public boolean showPermission(Permission p) { return p.getEnabled() && p!=Item.CREATE; }
public boolean showPermission(Permission p) { // These three are only used by Team Authorization if (p == Computer.READ){ return false; } if (p == Computer.CREATE){ return false; } if (p == View.READ){ return false; } return p.getEnabled(); }
public boolean showPermission(Permission p) { // These three are only used by Team Authorization if (p == Computer.READ){ return false; } if (p == Computer.CREATE){ return false; } if (p == View.READ){ return false; } return p.getEnabled() && p != Item.CREATE; }
public boolean showPermission(Permission p) { return p.getEnabled(); }
public boolean showPermission(Permission p) { return p.getEnabled(); }
public boolean showPermission(Permission p) { return p.getEnabled(); }
public boolean showPermission(Permission p) { return p.getEnabled() && p!=Item.CREATE; }
public boolean showPermission(Permission p) { return p.getEnabled() && p!=Item.CREATE; }
/** * Checks if the permission is explicitly given, instead of implied through {@link Permission#impliedBy}. */ public boolean hasExplicitPermission(String sid, Permission p) { Set<String> set = grantedPermissions.get(p); return set != null && set.contains(sid) && p.getEnabled(); }
/** * Checks if the given SID has the given permission. */ public boolean hasPermission(String sid, Permission p) { for(; p!=null; p=p.impliedBy) { Set<String> set = grantedPermissions.get(p); if(set!=null && set.contains(sid) && p.getEnabled()) return true; } return false; }
/** * Checks if the given SID has the given permission. */ public boolean hasPermission(String sid, Permission p) { for(; p!=null; p=p.impliedBy) { Set<String> set = grantedPermissions.get(p); if(set!=null && set.contains(sid) && p.getEnabled()) return true; } return false; }
/** * Checks if the given SID has the given permission. */ public boolean hasPermission(String sid, Permission p) { for(; p!=null; p=p.impliedBy) { Set<String> set = grantedPermissions.get(p); if(set!=null && set.contains(sid) && p.getEnabled()) return true; } return false; }
/** * Checks if the given SID has the given permission. */ public boolean hasPermission(String sid, Permission p) { for (; p != null; p = p.impliedBy) { Set<String> set = grantedPermissions.get(p); if (set != null && set.contains(sid) && p.getEnabled()) { return true; } } return false; }
/** * Checks if the permission is explicitly given, instead of implied through * {@link Permission#impliedBy}. */ public boolean hasExplicitPermission(String sid, Permission p) { Set<String> set = grantedPermissions.get(p); return set != null && set.contains(sid) && p.getEnabled(); }
/** * Checks if the permission is explicitly given, instead of implied through {@link Permission#impliedBy}. */ public boolean hasExplicitPermission(String sid, Permission p) { Set<String> set = grantedPermissions.get(p); return set != null && set.contains(sid) && p.getEnabled(); }
/** * Checks if the permission is explicitly given, instead of implied through {@link Permission#impliedBy}. */ public boolean hasExplicitPermission(String sid, Permission p) { Set<String> set = grantedPermissions.get(p); return set != null && set.contains(sid) && p.getEnabled(); }
@Override public final Collection<Permission> getItemsOfGroup(PermissionGroup group) { LinkedList<Permission> res = new LinkedList<>(); for (Permission p : group.getPermissions()) { if (p.getEnabled()) { res.add(p); } } return res; }
@SuppressFBWarnings(value="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT", justification="getEnabled return value discarded") @Initializer(after=InitMilestone.PLUGINS_STARTED, before=InitMilestone.EXTENSIONS_AUGMENTED) public static void ensurePermissionRegistered() { REPLAY.getEnabled(); }
return p.getEnabled(); return p == Item.CREATE && p.getEnabled() || p != Item.CREATE && p.getEnabled(); return p!=Computer.CREATE && p.getEnabled();
/** * Checks if the current user can view injected variables in the run. * @param run Run to be checked * @return true if the injected variables can be displayed. */ @Restricted(NoExternalUse.class) public static boolean canViewInjectedVars(@Nonnull Run<?,?> run) { // We allow security engines to block the output if (VIEW_INJECTED_VARS.getEnabled() && !run.hasPermission(VIEW_INJECTED_VARS)) { return false; } // Last check - global configs final EnvInjectPluginConfiguration configuration = getInstance().getConfiguration(); return !configuration.isHideInjectedVars(); }