refactor(enums): recon - include ReconOps variant in PermissionsGroup for backwards compatibility with data in DB (#6767)

This commit is contained in:
Kashif
2024-12-10 16:33:31 +05:30
committed by GitHub
parent b9c04c3988
commit a52828296a
3 changed files with 6 additions and 6 deletions

View File

@ -2828,10 +2828,9 @@ pub enum PermissionGroup {
ReconReportsView,
ReconReportsManage,
ReconOpsView,
// Alias is added for backward compatibility with database
// TODO: Remove alias post migration
#[serde(alias = "recon_ops")]
ReconOpsManage,
// TODO: To be deprecated, make sure DB is migrated before removing
ReconOps,
}
#[derive(Clone, Debug, serde::Serialize, PartialEq, Eq, Hash, strum::EnumIter)]