mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(authz): Create a permission generator (#6394)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,23 +1,9 @@
|
||||
use common_enums::PermissionGroup;
|
||||
use common_enums::{ParentGroup, PermissionGroup};
|
||||
use common_utils::pii;
|
||||
use masking::Secret;
|
||||
|
||||
pub mod role;
|
||||
|
||||
#[derive(Clone, Debug, serde::Serialize, PartialEq, Eq, Hash)]
|
||||
pub enum ParentGroup {
|
||||
Operations,
|
||||
Connectors,
|
||||
Workflows,
|
||||
Analytics,
|
||||
Users,
|
||||
#[serde(rename = "MerchantAccess")]
|
||||
Merchant,
|
||||
#[serde(rename = "OrganizationAccess")]
|
||||
Organization,
|
||||
Recon,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
pub struct AuthorizationInfoResponse(pub Vec<AuthorizationInfo>);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user