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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:26:03+00:00 2026-06-10T07:26:03+00:00

my data-driven web site needs a visualized Privilege Management feature, but i don’t want

  • 0

my data-driven web site needs a visualized Privilege Management feature,

but i don’t want to develop it by hand, i think there must be some mature general projects.

i use asp.net mvc, razor, EF & MySql

if not role-based but permission-based will be better

  • 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-10T07:26:04+00:00Added an answer on June 10, 2026 at 7:26 am

    my code:

    public class PermissionsAttribute : ActionFilterAttribute
    {
        private readonly Permission _requiredPermission;
    
        public PermissionsAttribute(string itemName, Operation op)
        {
            var permi = new Permission()
            this._requiredPermission = permi;
        }
    
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var user = HttpContext.Current.User;
            if (user == null)
            {/*redirect to sign-in page*/}
            else
            {/*check permission/*}
        }
    

    just add this attribute to Controller and action

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

Sidebar

Related Questions

I'm developing a simple servlet/JSP, data-driven web site on Google App Engine. I've started
I have a web-site that generates some simple tabular data as html tables, many
I am creating a very data intensive, high volume web site. Every aspect of
I have a number data-driven web based applications that serve both internal and public
I am developing a data driven website and quite a lot of programming logic
Selenium Java Web Driver: How to pass numeric data to a numeric field? For
I'm rewriting a data-driven legacy application in Python. One of the primary tables is
I've built a data-driven google map with different icons that get assigned to the
I was reading about data driven testing using mbunit from this article. http://blog.benhall.me.uk/2007/04/mbunit-datafixture-data-driven-unit.html I
I'm trying to define a Data Driven Subscription for a report in SSRS 2005.

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.