Permission-based authorization utilizing Policies
This commit is contained in:
		
							
								
								
									
										23
									
								
								Oqtane.Shared/Models/Permission.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								Oqtane.Shared/Models/Permission.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Oqtane.Models | ||||
| { | ||||
|     public class Permission : IAuditable | ||||
|     { | ||||
|         public int PermissionId { get; set; } | ||||
|         public int SiteId { get; set; } | ||||
|         public string EntityName { get; set; } | ||||
|         public int EntityId { get; set; } | ||||
|         public string PermissionName { get; set; } | ||||
|         public int? RoleId { get; set; } | ||||
|         public int? UserId { get; set; } | ||||
|         public bool IsAuthorized { get; set; } | ||||
|  | ||||
|         public string CreatedBy { get; set; } | ||||
|         public DateTime CreatedOn { get; set; } | ||||
|         public string ModifiedBy { get; set; } | ||||
|         public DateTime ModifiedOn { get; set; } | ||||
|  | ||||
|         public Role Role { get; set; } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker