-
Couldn't load subscription status.
- Fork 67
Improve reader UI (part 2) #10582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Improve reader UI (part 2) #10582
Changes from 20 commits
85d603e
9c4e808
2df3403
7a7638f
fc0d90b
603d5af
ac6f42f
dab4f19
bd193df
f662597
4371831
412ac7b
957b7f4
1bacd91
c711c96
f37244a
4644e8f
120c8a9
d0c0937
324caa8
bc4c235
6bff837
fef44c6
02c4753
c3881ae
7e8fa4f
ce9c77d
97b8ff1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
|
|
||
| class OrganizerPositionPolicy < ApplicationPolicy | ||
| def destroy? | ||
| admin_or_contract_signee? | ||
| admin_or_contract_signee? || record.user == user | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably be in a separate PR since it's not strictly UI related. |
||
| end | ||
|
|
||
| def set_index? | ||
|
|
||
manuthecoder marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -195,12 +195,12 @@ | |
| disabled: !organizer_signed_in?, | ||
| method: :post, | ||
| data: { confirm: "Are you sure you want to void this invoice? Voided invoices can not be paid and this action cannot be undone." }, | ||
| class: "btn bg-error mr1 right" if @invoice.open_v2? %> | ||
| class: "btn bg-error mr1 right" if @invoice.open_v2? && organizer_signed_in?(as: :member) %> | ||
| <%= link_to (@invoice.archived? ? "Un-archive" : "Archive"), | ||
| (@invoice.archived? ? invoice_unarchive_path(@invoice) : invoice_archive_path(@invoice)), | ||
| disabled: !organizer_signed_in?, | ||
| method: :post, | ||
| class: "btn bg-muted" unless @invoice.void_v2? %> | ||
| class: "btn bg-muted" unless @invoice.void_v2? || !organizer_signed_in?(as: :member) %> | ||
|
Comment on lines
+198
to
+203
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we make policies for these please? |
||
| </section> | ||
| </article> | ||
|
|
||
|
|
||
Luke-Oldenburg marked this conversation as resolved.
Show resolved
Hide resolved
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should freeze cards instead of cancel and be in a separate PR please.