mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 21:33:36 +00:00
Implemented Custom role and permissions (#1189)
* Implemented Custom role and permissions * changed permissions to permissions model * added a semicolon
This commit is contained in:
@@ -26,6 +26,7 @@ namespace Bit.Core.Models.Data
|
||||
Seats = response.Seats;
|
||||
MaxCollections = response.MaxCollections;
|
||||
MaxStorageGb = response.MaxStorageGb;
|
||||
Permissions = response.Permissions;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
@@ -45,5 +46,6 @@ namespace Bit.Core.Models.Data
|
||||
public int Seats { get; set; }
|
||||
public int MaxCollections { get; set; }
|
||||
public short? MaxStorageGb { get; set; }
|
||||
public Permissions Permissions { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
16
src/Core/Models/Data/Permissions.cs
Normal file
16
src/Core/Models/Data/Permissions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Bit.Core.Models.Data
|
||||
{
|
||||
public class Permissions
|
||||
{
|
||||
public bool AccessBusinessPortal { get; set; }
|
||||
public bool AccessEventLogs { get; set; }
|
||||
public bool AccessImportExport { get; set; }
|
||||
public bool AccessReports { get; set; }
|
||||
public bool ManageAssignedCollections { get; set; }
|
||||
public bool ManageAllCollections { get; set; }
|
||||
public bool ManageGroups { get; set; }
|
||||
public bool ManagePolicies { get; set; }
|
||||
public bool ManageSso { get; set; }
|
||||
public bool ManageUsers { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user