Starts in:
2 DAYS
4 HRS
17 MIN
19 SEC
Starts in:
2 D
4 H
17 M
19 S
Open Closed

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


User avatar
0
safi created

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 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team 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 created

    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 created
    Support Team 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 created
    Support Team Automatic process manager

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

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06