2026-08-21 19:27:59 +00:00
|
|
|
|
using Volo.Abp.Authorization.Permissions;
|
2026-02-24 20:44:16 +00:00
|
|
|
|
|
|
|
|
|
|
namespace Sozsoft.Platform.Permissions;
|
|
|
|
|
|
|
2026-08-11 11:09:58 +00:00
|
|
|
|
/// <summary>
|
2026-09-17 17:54:23 +00:00
|
|
|
|
/// Uygulama yetkileri kod içinde tanımlanmaz; <c>configs/seeds/host/data/Abp.Identity.Permissions.json</c>
|
|
|
|
|
|
/// dosyasından <c>ListFormSeedDataApplier</c> ile veritabanına seed edilir ve
|
2026-08-11 11:09:58 +00:00
|
|
|
|
/// oradan dinamik olarak yönetilir. Bu sağlayıcı yalnızca kullanılmayan
|
|
|
|
|
|
/// ABP modül gruplarını kaldırmak için vardır.
|
|
|
|
|
|
/// </summary>
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public class PlatformPermissionDefinitionProvider : PermissionDefinitionProvider
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Define(IPermissionDefinitionContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
PermissionRemoveGroup(context);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void PermissionRemoveGroup(IPermissionDefinitionContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
context.RemoveGroup("AbpTenantManagement");
|
|
|
|
|
|
context.RemoveGroup("SettingManagement");
|
|
|
|
|
|
context.RemoveGroup("FeatureManagement");
|
|
|
|
|
|
context.RemoveGroup("AbpIdentity");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|