Skip to content

Commit

Permalink
permissions revamp
Browse files Browse the repository at this point in the history
- moved from pre-defined roles to granular permissions
- custom roles can be defined and given specific permissions
- added Project level roles
  - Users can be added to specific Projects and assigned Project roles
- added Groups of users that can be added to Projects
- Roles and Groups can optionally be pulled from Identity Provider token
  • Loading branch information
sei-aschlackman committed Jan 3, 2025
1 parent 3d64c17 commit 86fe7ad
Show file tree
Hide file tree
Showing 246 changed files with 12,469 additions and 4,520 deletions.
7 changes: 5 additions & 2 deletions src/Caster.Api/Data/CasterContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ public CasterContext(DbContextOptions options) : base(options)
public DbSet<RemovedResource> RemovedResources { get; set; }
public DbSet<Module> Modules { get; set; }
public DbSet<ModuleVersion> ModuleVersions { get; set; }
public DbSet<Permission> Permissions { get; set; }
public DbSet<User> Users { get; set; }
public DbSet<UserPermission> UserPermissions { get; set; }
public DbSet<Host> Hosts { get; set; }
public DbSet<HostMachine> HostMachines { get; set; }
public DbSet<Design> Designs { get; set; }
Expand All @@ -39,6 +37,11 @@ public CasterContext(DbContextOptions options) : base(options)
public DbSet<Vlan> Vlans { get; set; }
public DbSet<Partition> Partitions { get; set; }
public DbSet<Pool> Pools { get; set; }
public DbSet<SystemRole> SystemRoles { get; set; }
public DbSet<ProjectRole> ProjectRoles { get; set; }
public DbSet<ProjectMembership> ProjectMemberships { get; set; }
public DbSet<Group> Groups { get; set; }
public DbSet<GroupMembership> GroupMemberships { get; set; }

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
Expand Down
Loading

0 comments on commit 86fe7ad

Please sign in to comment.