* Revert "fix: remove fallback permssions on organization Id. (#22769)"
This reverts commit 30061c0d58.
Removes the manage permission concept and fallback logic to simplify
permission checking back to direct role-based checks.
* remove manage from workflows
* fix type error and remove manage from components
This commit is contained in:
1 parent
2922c8fe77
commit
ae738fae35
9 files changed
+22
-434
No files matched your search
@@ -27,7 +27,6 @@ interface WorkflowPermissions {
|
||||
canView: boolean;
|
||||
canUpdate: boolean;
|
||||
canDelete: boolean;
|
||||
canManage: boolean;
|
||||
readOnly: boolean; // Keep for backward compatibility
|
||||
}
|
||||
|
||||
@@ -62,7 +61,6 @@ export default function WorkflowDetailsPage(props: Props) {
|
||||
canView: !teamId ? true : !props.readOnly,
|
||||
canUpdate: !teamId ? true : !props.readOnly,
|
||||
canDelete: !teamId ? true : !props.readOnly,
|
||||
canManage: !teamId ? true : !props.readOnly,
|
||||
readOnly: !teamId ? false : props.readOnly,
|
||||
};
|
||||
|
||||
@@ -119,7 +117,7 @@ export default function WorkflowDetailsPage(props: Props) {
|
||||
numberVerificationPending: false,
|
||||
includeCalendarEvent: false,
|
||||
verifiedAt: SCANNING_WORKFLOW_STEPS ? null : new Date(),
|
||||
agentId: null
|
||||
agentId: null,
|
||||
};
|
||||
steps?.push(step);
|
||||
form.setValue("steps", steps);
|
||||
|
||||
Reference in new issue
Block a user