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 8423053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:37:42+00:00 2026-06-10T03:37:42+00:00

This is a best practice question regarding user permissions on a website. If a

  • 0

This is a best practice question regarding user permissions on a website. If a user does not have permission to perform certain actions on the page, is it better to
A. Do those security checks before rendering and hide the buttons
B. Go ahead and render the buttons and do the security check when the user clicks the button, and notify them if they do not have permission.

I am leaning towards B for several reasons. Two of those reasons are faster initial load time and also more clear for the user. If they don’t see the button, they might not understand that it’s not there due to security, and that could lead to a support call.

I’d love to hear other opinions on this.

  • 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-06-10T03:37:43+00:00Added an answer on June 10, 2026 at 3:37 am

    You should always do the security checks just before you do some action, even if the buttons are hidden. Remember that the client can send any HTTP request he want, regardless of what buttons your webpage offers.

    But of course it would be useful to check the user permissions when displaying the buttons, too. I think, the best practice is not to hide them, but to “grey them out” or show in another visual way, that a certain action exists but cannot be performed. It would be annoying for the user, if he first have to press the buttons to check out wether they are working.

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

Sidebar

Related Questions

I just have a quick best practice question regarding custom cells in a UITableView.
I have a best practice type of question regarding Nibs and UISegmentedControls. I have
Yesterday, I asked this question regarding best practices for a simple information retrieval system
This is a 'best practice' question. I want to play with the look and
This is a very generic 'best practice' question, but here's an example. Let's say
This is a beginner-best-practice question in perl. I'm new to this language. The question
My question is that is this the best practice to do this. Couldn't find
This is a best practices question Let say, I have a class object, like
This is basically a 'best practices' question. Struts 1 forms have getters and setters
Hey, I have a question regarding code structure, and was wondering what the best

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.