Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7562031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:18:43+00:00 2026-05-30T13:18:43+00:00

I have a simple application using the Play! framework’s secure module. My ‘Users’ controller

  • 0

I have a simple application using the Play! framework’s secure module. My ‘Users’ controller extends CRUD and is protected by @Check(‘admin’), so users have to be admins to access CRUD methods. However, I’d like anyone to be able to create new Users– like a “Sign Up” or “Register” button.

What is a good way to do this, given that all of my Users methods except Create should be protected? Can I apply @Check(“admin”) to individual methods?

Here is my Users controller:

package controllers;

import play.*;
import play.mvc.*;

@Check("admin")
@With(Secure.class)
public class Users extends CRUD {
};
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T13:18:45+00:00Added an answer on May 30, 2026 at 1:18 pm

    What is a good way to do this, given that all of my Users methods except Create should be protected?

    In my practice, I create new controller in another package with the same name for doing this.

    For example,

    enter image description here

    So, I think the best way is you should put Sign up method in the Non-Admin.

    After I find some reference, this link has same idea with you and the answer of this topic is like what I said.

    Can I apply @Check("admin") to individual methods?

    Yes, you can. But you need to use @With(Secure.class) in that controller first.
    You can see the example in Secure Module Documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using guice with java play framework. i have a simple command interface,
I have a simple application using netbeans for developing and maven for building et
I have built a very simple blog application using Ruby on Rails. New to
I have an extremely simple web application running in Tomcat using Spring 3.0.2, Hibernate
I have a very simple WPF application in which I am using data binding
In our desktop application, we have implemented a simple search engine using an inverted
I have written a simple test application using asp.net mvc with C#. The application
I have created a simple native application using Blackberry API's. Application contains only a
im developing a simple Mxml application using flex 3. I have used simple text
I have a simple Java web application using HSQLDB embedded database. The application is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.