diff --git a/DepartmentPortal/Common/DatabaseCore/Models/Security/Access.cs b/DepartmentPortal/Common/DatabaseCore/Models/Security/Access.cs index e4996a6..0c8b8f7 100644 --- a/DepartmentPortal/Common/DatabaseCore/Models/Security/Access.cs +++ b/DepartmentPortal/Common/DatabaseCore/Models/Security/Access.cs @@ -34,7 +34,11 @@ namespace DatabaseCore.Models.Security public virtual Role Role { get; set; } - public Access SecurityCheck(Access entity, bool allowFullData) + //------------------------------------------------------------------------- + + //------------------------------------------------------------------------- + + public Access SecurityCheck(Access entity, bool allowFullData) { if (!allowFullData) { @@ -42,7 +46,5 @@ namespace DatabaseCore.Models.Security } return entity; } - - //------------------------------------------------------------------------- } } \ No newline at end of file diff --git a/DepartmentPortal/Common/DatabaseCore/Models/Security/EnviromentSetting.cs b/DepartmentPortal/Common/DatabaseCore/Models/Security/EnviromentSetting.cs index 2c33a05..90e7563 100644 --- a/DepartmentPortal/Common/DatabaseCore/Models/Security/EnviromentSetting.cs +++ b/DepartmentPortal/Common/DatabaseCore/Models/Security/EnviromentSetting.cs @@ -26,6 +26,12 @@ namespace DatabaseCore.Models.Security [MapConfiguration("Description")] public string Description { get; set; } + //------------------------------------------------------------------------- + + //------------------------------------------------------------------------- + + //------------------------------------------------------------------------- + public EnviromentSetting SecurityCheck(EnviromentSetting entity, bool allowFullData) { if (!allowFullData) diff --git a/DepartmentPortal/Common/DatabaseCore/Models/Security/Role.cs b/DepartmentPortal/Common/DatabaseCore/Models/Security/Role.cs index e9a51e9..78f525d 100644 --- a/DepartmentPortal/Common/DatabaseCore/Models/Security/Role.cs +++ b/DepartmentPortal/Common/DatabaseCore/Models/Security/Role.cs @@ -31,6 +31,8 @@ namespace DatabaseCore.Models.Security [ForeignKey("RoleId")] public virtual List UserRoles { get; set; } + //------------------------------------------------------------------------- + public Role SecurityCheck(Role entity, bool allowFullData) => entity; } diff --git a/DepartmentPortal/Common/DatabaseCore/Models/Security/User.cs b/DepartmentPortal/Common/DatabaseCore/Models/Security/User.cs index ec105ef..3c85335 100644 --- a/DepartmentPortal/Common/DatabaseCore/Models/Security/User.cs +++ b/DepartmentPortal/Common/DatabaseCore/Models/Security/User.cs @@ -49,7 +49,9 @@ namespace DatabaseCore.Models.Security [ForeignKey("UserId")] public virtual List UserRoles { get; set; } - public User SecurityCheck(User entity, bool allowFullData) + //------------------------------------------------------------------------- + + public User SecurityCheck(User entity, bool allowFullData) { if (!allowFullData) { diff --git a/DepartmentPortal/Common/DatabaseCore/Models/Security/UserRole.cs b/DepartmentPortal/Common/DatabaseCore/Models/Security/UserRole.cs index 0b81721..167b8e3 100644 --- a/DepartmentPortal/Common/DatabaseCore/Models/Security/UserRole.cs +++ b/DepartmentPortal/Common/DatabaseCore/Models/Security/UserRole.cs @@ -28,8 +28,10 @@ namespace DatabaseCore.Models.Security public virtual User User { get; set; } - public UserRole SecurityCheck(UserRole entity, bool allowFullData) => entity; + //------------------------------------------------------------------------- //------------------------------------------------------------------------- + + public UserRole SecurityCheck(UserRole entity, bool allowFullData) => entity; } } \ No newline at end of file