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

  • Home
  • SEARCH
  • 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 7995323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:22:38+00:00 2026-06-04T14:22:38+00:00

Suppose a scenario like below : Class User {} // User has Admin Role

  • 0

Suppose a scenario like below :

Class User {}      // User has Admin Role 
Class Role {}     // Role Admin has Access to choose_date
Class Feature {} // Feature route is choose_date

Each User can have One Role. Each role has access to many Features. I have designed the part that Save and Retrieve the Access Matrix for each role. So I know which Role should access to which features and it is saved in a table called roles_features.

Do I have to write my own function to check if the rout is allowed for that Role or not manually. Note: I don’t want to use secuirty.yml file at all;

// In my Twig File
{% if my_own_get_access_matrix(app.user.roles, 'choose_date') %}

    <a href="{{ path('choose_date') }}">
        Edit 
    </a>

{% endif %}

I would like to know if there exists any predefined my_own_get_access_matrix which return an optimized way of Access Control for each Role and Links or I have to implement mine;

As I wrote, I don’t want to use the secuirity.yml since Access Control need to be dynamic. So a super user (ADMIN) should be able to define Roles and their Access to Each Feature which is a Route here;

Thanks in advance.

  • 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-04T14:22:40+00:00Added an answer on June 4, 2026 at 2:22 pm

    It looks like you’re looking for ACLs.

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

Sidebar

Related Questions

Assume a legacy class and method structure like below public class Foo { public
Suppose this simple scenario: My client has an already working .net application and he/she
I am a NHibernate newbie. Suppose you have a Customer class like this public
Suppose in MS Word, my text is like below hello how are you ...
I am interested in the following scenario specifically. Suppose you have team that writes
Suppose I have: public class foobar { public int lorem; public int ipsum; }
Suppose I have string Name and Image Photo as properties of a class in
Just curious about a particular scenario of NAT. Let's suppose we have 4 computers
Suppose I have a table: <table width=100> <tr> <td> hi i like you you
Suppose i have the following Moose package: package GSM::Cell; use Moose; has 'ID' =>

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.