打开 关闭

Show/hide permissions setting for Tenant Admin #2117


User avatar
0
LongNP8 创建

Hi,

I would like to setup some new Permission in platform, only users at Host level (Host admin, ex) could configure them. Tenant Admin is not allowed to see those Permissions to configure.

Could you please give us the solution for it ?

Thanks, Long


1 答案
  • User Avatar
    0
    berkansasmaz 创建
    支持团队 .NET Developer

    Hi,

    You can define permissions to be available only at the host/tenant or both levels.

    myGroup.AddPermission(
        "BookStore_Author_Create",
        LocalizableString.Create<BookStoreResource>("Permission:BookStore_Author_Create"),
        multiTenancySide: MultiTenancySides.Host //set multi-tenancy side!
    );
    

    For more information 👉 https://docs.abp.io/en/abp/latest/Authorization#multi-tenancy

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