extensibility enhancements for site templates

This commit is contained in:
Shaun Walker
2020-03-19 12:07:33 -04:00
parent 50bbc7f5b8
commit 18a843e74f
39 changed files with 758 additions and 194 deletions

View File

@ -19,5 +19,23 @@ namespace Oqtane.Models
public DateTime ModifiedOn { get; set; }
public Role Role { get; set; }
public Permission()
{
}
public Permission(string permissionName, string roleName, bool isAuthorized)
{
PermissionName = permissionName;
Role = new Role { Name = roleName };
IsAuthorized = isAuthorized;
}
public Permission(string permissionName, int userId, bool isAuthorized)
{
PermissionName = permissionName;
UserId = userId;
IsAuthorized = isAuthorized;
}
}
}