- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 33 for hasRole (0.08 sec)
-
src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java
if (user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())) { return; } final Method executeMethod = resource.getExecuteMethod(); final Secured secured = executeMethod.getAnnotation(Secured.class); if (secured != null && user.hasRoles(secured.value())) { return; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.8K bytes - Viewed (0) -
association.go
} return association.Error } func (association *Association) Append(values ...interface{}) error { if association.Error == nil { switch association.Relationship.Type { case schema.HasOne, schema.BelongsTo: if len(values) > 0 { association.Error = association.Replace(values...) } default: association.saveAssociation( /*clear*/ false, values...) } } return association.Error
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 21.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessLoginAction.java
return getUserBean().map(this::redirectByUser).orElse(asHtml(virtualHost(path_Login_IndexJsp))); } protected HtmlResponse redirectByUser(final FessUserBean user) { if (user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())) { return redirect(AdminDashboardAction.class); } final Class<? extends FessAdminAction> actionClass = AdminAction.getAdminActionClass(user);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/taglib/FessFunctions.java
} final FessLoginAssist loginAssist = ComponentUtil.getComponent(FessLoginAssist.class); return loginAssist.getSavedUserBean() .map(user -> user.hasRoles(roles) || user.hasRoles(ComponentUtil.getFessConfig().getAuthenticationAdminRolesAsArray())) .orElse(false); } public static String maskEmail(final String value) { if (value == null) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 16.9K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
if (cached != null // if the POM has no file, we cached a missing artifact, only return the cached data if no update forced && (!request.isForceUpdate() || hasFile(cached.getPomArtifact()))) { return cached; } List<Dependency> dependencies; List<Dependency> managedDependencies = null;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 30.3K bytes - Viewed (0) -
callbacks/delete.go
if !v { continue } rel, ok := db.Statement.Schema.Relationships.Relations[column] if !ok { continue } switch rel.Type { case schema.HasOne, schema.HasMany: queryConds := rel.ToQueryConditions(db.Statement.Context, db.Statement.ReflectValue) modelValue := reflect.New(rel.FieldSchema.ModelType).Interface()
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Feb 25 02:48:23 UTC 2022 - 5.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessSearchAction.java
runtime.registerData("adminUser", fessConfig.isAdminUser(username) || fessLoginAssist.getSavedUserBean() .map(user -> user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())).orElse(false)); runtime.registerData("pageLoginLink", fessConfig.isLoginLinkEnabled()); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 10K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/QueryHelper.java
public void processSearchPreference(final SearchRequestBuilder searchRequestBuilder, final OptionalThing<FessUserBean> userBean, final String query) { userBean.map(user -> { if (user.hasRoles(ComponentUtil.getFessConfig().getAuthenticationAdminRolesAsArray())) { return Constants.SEARCH_PREFERENCE_LOCAL; } return user.getUserId();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 11.9K bytes - Viewed (0) -
schema/schema_test.go
f.Creatable = true f.Updatable = true f.Readable = true }) } // check relations relations := []Relation{ { Name: "Account", Type: schema.HasOne, Schema: "User", FieldSchema: "Account", References: []Reference{{"ID", "User", "UserID", "Account", "", true}}, }, { Name: "Pets", Type: schema.HasMany, Schema: "User", FieldSchema: "Pet",
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jun 20 12:19:31 UTC 2024 - 13.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java
throws IOException, ServletException { final RequestManager requestManager = ComponentUtil.getRequestManager(); if (!requestManager.findUserBean(FessUserBean.class).map(user -> user.hasRoles(acceptedRoles)).orElse(Boolean.FALSE)) { response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized access: " + request.getServletPath()); return; } try {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Aug 15 08:29:24 UTC 2024 - 11.3K bytes - Viewed (0)