строка комментария
This commit is contained in:
parent
5821eb5c06
commit
b30c8bdf5b
@ -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;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
}
|
||||
}
|
@ -26,6 +26,12 @@ namespace DatabaseCore.Models.Security
|
||||
[MapConfiguration("Description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
public EnviromentSetting SecurityCheck(EnviromentSetting entity, bool allowFullData)
|
||||
{
|
||||
if (!allowFullData)
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
@ -49,7 +49,9 @@ namespace DatabaseCore.Models.Security
|
||||
[ForeignKey("UserId")]
|
||||
public virtual List<UserRole> UserRoles { get; set; }
|
||||
|
||||
public User SecurityCheck(User entity, bool allowFullData)
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
public User SecurityCheck(User entity, bool allowFullData)
|
||||
{
|
||||
if (!allowFullData)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user