1
0
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:
Addison Beck
2021-01-13 14:31:27 -05:00
committed by GitHub
parent ca7794e6f2
commit cdc08e7e8a
7 changed files with 35 additions and 2 deletions

View File

@@ -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; }
}
}

View 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; }
}
}