You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LuPermissionsBusiness.cs 809B

12345678910111213141516171819202122
  1. using System;
  2. using Luticate2.Auth.Interfaces.Permissions;
  3. using Luticate2.Utils.Dbo.Result;
  4. namespace Luticate2.Auth.Business
  5. {
  6. public class LuPermissionsBusiness : ILuPermissionsBusiness
  7. {
  8. public LuResult<bool> GetPermissionValue(string permissionName, string srcEntityType, object srcEntity,
  9. string dstEntityType, object dstEntity)
  10. {
  11. return LuResult<bool>.Ok(true);
  12. }
  13. public LuResult<bool> GetPermissionEffectiveValue(string permissionName, string srcEntityType, object srcEntity,
  14. string dstEntityType, object dstEntity)
  15. {
  16. // throw new Exception($"{permissionName} {srcEntityType} {srcEntity} {dstEntityType} {dstEntity}");
  17. return LuResult<bool>.Ok(true);
  18. }
  19. }
  20. }