Aperto Chiuso

How we can provide permission from seed to specific role #928


User avatar
0
safi creato

Hi

I have some roles so wants to restrict some sections as per role so is it possible to provide permission while generaing the migration and how we can do this via seed.

Thanks,


4 risposte
  • User Avatar
    0
    maliming creato
    Team di supporto Fullstack Developer

    hi

    You can refer this:

    https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionDataSeedContributor.cs#L26

    https://docs.abp.io/en/abp/latest/Data-Seeding

  • User Avatar
    0
    safi creato

    Hi

    Thanks for the reply. Actually I have 3 roles i.e admin, QA and visitor so admin will have all the permission so it's already happening. Now I want to restrict sections for reamining two roles so do I need to define pages permission here?

    Thanks,

  • User Avatar
    0
    maliming creato
    Team di supporto Fullstack Developer

    Now I want to restrict sections for reamining two roles so do I need to define pages permission here?

    Sorry I can't get your point, Can you explain it in detail?

  • User Avatar
    0
    ServiceBot creato
    Team di supporto Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11