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

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,6 +34,10 @@ namespace DatabaseCore.Models.Security
public virtual Role Role { get; set; }
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
public Access SecurityCheck(Access entity, bool allowFullData)
{
if (!allowFullData)
@ -42,7 +46,5 @@ namespace DatabaseCore.Models.Security
}
return entity;
}
//-------------------------------------------------------------------------
}
}

View File

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

View File

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

View File

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

View File

@ -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;
}
}