строка комментария

This commit is contained in:
kotcheshir73 2021-04-03 09:39:50 +04:00
parent 5821eb5c06
commit b30c8bdf5b
5 changed files with 19 additions and 5 deletions

View File

@ -34,7 +34,11 @@ namespace DatabaseCore.Models.Security
public virtual Role Role { get; set; } public virtual Role Role { get; set; }
public Access SecurityCheck(Access entity, bool allowFullData) //-------------------------------------------------------------------------
//-------------------------------------------------------------------------
public Access SecurityCheck(Access entity, bool allowFullData)
{ {
if (!allowFullData) if (!allowFullData)
{ {
@ -42,7 +46,5 @@ namespace DatabaseCore.Models.Security
} }
return entity; return entity;
} }
//-------------------------------------------------------------------------
} }
} }

View File

@ -26,6 +26,12 @@ namespace DatabaseCore.Models.Security
[MapConfiguration("Description")] [MapConfiguration("Description")]
public string Description { get; set; } public string Description { get; set; }
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
public EnviromentSetting SecurityCheck(EnviromentSetting entity, bool allowFullData) public EnviromentSetting SecurityCheck(EnviromentSetting entity, bool allowFullData)
{ {
if (!allowFullData) if (!allowFullData)

View File

@ -31,6 +31,8 @@ namespace DatabaseCore.Models.Security
[ForeignKey("RoleId")] [ForeignKey("RoleId")]
public virtual List<UserRole> UserRoles { get; set; } public virtual List<UserRole> UserRoles { get; set; }
//-------------------------------------------------------------------------
public Role SecurityCheck(Role entity, bool allowFullData) => entity; public Role SecurityCheck(Role entity, bool allowFullData) => entity;
} }

View File

@ -49,7 +49,9 @@ namespace DatabaseCore.Models.Security
[ForeignKey("UserId")] [ForeignKey("UserId")]
public virtual List<UserRole> UserRoles { get; set; } public virtual List<UserRole> UserRoles { get; set; }
public User SecurityCheck(User entity, bool allowFullData) //-------------------------------------------------------------------------
public User SecurityCheck(User entity, bool allowFullData)
{ {
if (!allowFullData) if (!allowFullData)
{ {

View File

@ -28,8 +28,10 @@ namespace DatabaseCore.Models.Security
public virtual User User { get; set; } public virtual User User { get; set; }
public UserRole SecurityCheck(UserRole entity, bool allowFullData) => entity; //-------------------------------------------------------------------------
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
public UserRole SecurityCheck(UserRole entity, bool allowFullData) => entity;
} }
} }