@ -1,4 +1,6 @@
namespace Volo.Blogging
using Volo.Abp.Reflection;
namespace Volo.Blogging
{
public class BloggingPermissions
@ -39,27 +41,7 @@
public static string[] GetAll()
return new[]
GroupName,
Blogs.Default,
Blogs.Management,
Blogs.Delete,
Blogs.Update,
Blogs.Create,
Posts.Default,
Posts.Delete,
Posts.Update,
Posts.Create,
Tags.Default,
Tags.Delete,
Tags.Update,
Tags.Create,
Comments.Default,
Comments.Delete,
Comments.Update,
Comments.Create
};
return ReflectionHelper.GetPublicConstantsRecursively(typeof(BloggingPermissions));
}
namespace Volo.Docs.Admin
namespace Volo.Docs.Admin
public class DocsAdminPermissions
@ -14,14 +16,7 @@
Projects.Default,
Projects.Delete,
Projects.Update,
Projects.Create,
return ReflectionHelper.GetPublicConstantsRecursively(typeof(DocsAdminPermissions));
namespace Volo.Abp.Identity
namespace Volo.Abp.Identity
public static class IdentityPermissions
@ -29,21 +31,7 @@
Roles.Default,
Roles.Create,
Roles.Update,
Roles.Delete,
Roles.ManagePermissions,
Users.Default,
Users.Create,
Users.Update,
Users.Delete,
Users.ManagePermissions,
UserLookup.Default
return ReflectionHelper.GetPublicConstantsRecursively(typeof(IdentityPermissions));
namespace Volo.Abp.TenantManagement
namespace Volo.Abp.TenantManagement
public static class TenantManagementPermissions
@ -16,16 +18,7 @@
Tenants.Default,
Tenants.Create,
Tenants.Update,
Tenants.Delete,
Tenants.ManageFeatures,
Tenants.ManageConnectionStrings
return ReflectionHelper.GetPublicConstantsRecursively(typeof(TenantManagementPermissions));
@ -1,4 +1,5 @@
using System;
using Volo.Abp.Reflection;
namespace Acme.BookStore.Permissions
@ -12,7 +13,7 @@ namespace Acme.BookStore.Permissions
//Return an array of all permissions
return Array.Empty<string>();
return ReflectionHelper.GetPublicConstantsRecursively(typeof(BookStorePermissions));
namespace ProductManagement
namespace ProductManagement
public class ProductManagementPermissions
Products.Default,
Products.Delete,
Products.Update,
Products.Create
return ReflectionHelper.GetPublicConstantsRecursively(typeof(ProductManagementPermissions));
namespace MyCompanyName.MyProjectName
namespace MyCompanyName.MyProjectName
public class MyProjectNamePermissions
@ -6,10 +8,7 @@
GroupName
return ReflectionHelper.GetPublicConstantsRecursively(typeof(MyProjectNamePermissions));
namespace MyCompanyName.MyProjectName.Permissions
@ -12,7 +13,7 @@ namespace MyCompanyName.MyProjectName.Permissions