Skip to content

Admin buttons permissions#5871

Open
pavlo-mk wants to merge 29 commits intodevelopfrom
perms_admin_button
Open

Admin buttons permissions#5871
pavlo-mk wants to merge 29 commits intodevelopfrom
perms_admin_button

Conversation

@pavlo-mk
Copy link
Copy Markdown
Contributor

@pavlo-mk pavlo-mk commented Apr 3, 2026

AB#305575: admin buttons permissions

@pavlo-mk pavlo-mk self-assigned this Apr 3, 2026
@pavlo-mk pavlo-mk added the work in progress Change doesn't need to be reviewed label Apr 3, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.25%. Comparing base (abf642f) to head (4adc0f7).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5871   +/-   ##
========================================
  Coverage    92.25%   92.25%           
========================================
  Files          494      494           
  Lines        34349    34355    +6     
  Branches      3602     3602           
========================================
+ Hits         31688    31694    +6     
  Misses        1911     1911           
  Partials       750      750           
Flag Coverage Δ
e2e 52.65% <100.00%> (+<0.01%) ⬆️
unit 91.95% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pavlo-mk pavlo-mk removed the work in progress Change doesn't need to be reviewed label Apr 9, 2026
@pavlo-mk pavlo-mk changed the title WIP // Admin buttons permissions Admin buttons permissions Apr 9, 2026
@pavlo-mk pavlo-mk marked this pull request as ready for review April 9, 2026 01:16
Copy link
Copy Markdown
Contributor

@domdinicola domdinicola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is root should not be removed at the moment
remove use of "can_" because is not consistent
if single or not, we use the same permission

@pavlo-mk pavlo-mk marked this pull request as draft April 14, 2026 12:12
@pavlo-mk pavlo-mk added the work in progress Change doesn't need to be reviewed label Apr 14, 2026
@pavlo-mk pavlo-mk removed the work in progress Change doesn't need to be reviewed label Apr 15, 2026
@pavlo-mk pavlo-mk marked this pull request as ready for review April 15, 2026 00:49
@pavlo-mk pavlo-mk requested a review from domdinicola April 15, 2026 00:50
return TemplateResponse(request, "core/test_rapidpro.html", context)

@button(permission=is_root)
@button(permission=lambda request, obj, handler: is_root(request) or request.user.has_perm("core.mark_submissions"))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's put AND, not OR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants