Skip to content

Commit

Permalink
always show playbook RUN button
Browse files Browse the repository at this point in the history
ABAC makes things complicated. So, we just wanna show the buttons for
now.
  • Loading branch information
adityathebe authored and moshloop committed Jan 15, 2025
1 parent 66302b8 commit c48277a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/components/Playbooks/Settings/PlaybookSpecCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,10 @@ export default function PlaybookSpecCard({
}}
className="btn-white"
/>
<AuthorizationAccessCheck resource={tables.playbooks} action="write">
<Button
text="Run"
onClick={() => setIsSubmitPlaybookRunFormOpen(true)}
/>
</AuthorizationAccessCheck>
<Button
text="Run"
onClick={() => setIsSubmitPlaybookRunFormOpen(true)}
/>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const Roles = {
admin: "admin",
editor: "editor",
viewer: "viewer",
user: "user",
guest: "guest",
commander: "commander",
responder: "responder"
};
Expand Down

0 comments on commit c48277a

Please sign in to comment.