mirror of
https://github.com/bitwarden/server
synced 2025-12-20 02:03:46 +00:00
Implemented Custom role and permissions (#1057)
* Implemented Custom role and permissions * Converted permissions columns to a json blob * Code review fixes for Permissions * sql build fix * Update Permissions.cs * formatting * Update IOrganizationService.cs * reworked a conditional * built out tests for relevant organization service methods * removed unused usings * fixed a broken test and a bad empty string init * removed 'Attribute' from some attribute instances
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Bit.Portal.Controllers
|
||||
}
|
||||
|
||||
if (!_enterprisePortalCurrentContext.SelectedOrganizationDetails.UsePolicies ||
|
||||
!_enterprisePortalCurrentContext.AdminForSelectedOrganization)
|
||||
!_enterprisePortalCurrentContext.CanManagePoliciesForSelectedOrganization)
|
||||
{
|
||||
return Redirect("~/");
|
||||
}
|
||||
@@ -65,7 +65,7 @@ namespace Bit.Portal.Controllers
|
||||
}
|
||||
|
||||
if (!_enterprisePortalCurrentContext.SelectedOrganizationDetails.UsePolicies ||
|
||||
!_enterprisePortalCurrentContext.AdminForSelectedOrganization)
|
||||
!_enterprisePortalCurrentContext.CanManagePoliciesForSelectedOrganization)
|
||||
{
|
||||
return Redirect("~/");
|
||||
}
|
||||
@@ -85,7 +85,7 @@ namespace Bit.Portal.Controllers
|
||||
}
|
||||
|
||||
if (!_enterprisePortalCurrentContext.SelectedOrganizationDetails.UsePolicies ||
|
||||
!_enterprisePortalCurrentContext.AdminForSelectedOrganization)
|
||||
!_enterprisePortalCurrentContext.CanManagePoliciesForSelectedOrganization)
|
||||
{
|
||||
return Redirect("~/");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user