Notifications: the Backup alerts row never shows
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- laravel, php, react, typescript
- Domain
- authorization, frontend
Research direction
Start in resources/js/pages/account/notifications.tsx near line 79, where the Backup alerts row is gated on auth.user.capabilities.includes('backups.alert'). Change that check to backups.manage, leaving app/Domain/Notices/BuiltInNotices.php alone since it defines a notice kind, not a permission. Add a test showing an administrator sees the row and an editor does not. Done when the Always sent panel lists three rows for a backup manager and the new test passes.
Written by the indexing model from the issue text.
Description
On Account › Notifications, the Always sent panel should list three locked rows, including Backup alerts for people who manage backups. It shows two: the row is gated on auth.user.capabilities.includes('backups.alert') (resources/js/pages/account/notifications.tsx, about line 79), but backups.alert is a notice kind (app/Domain/Notices/BuiltInNotices.php), not a permission. The permission is backups.manage.
Fix: gate the row on backups.manage, with a test that an administrator sees it and an editor doesn't.
- Dominant language
- PHP
- Stars
- 1
- Forks
- 1
- Avg merge
- 1h 40m
- Merged PRs (30d)
- 143
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from temecms/teme
-
area/admin type/enhancement when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
area/media type/enhancement when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area/import type/documentation when/soon
Difficulty 2/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area/admin area/import type/bug when/later
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area/admin type/bug when/later
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
QuantConnect/Documentation#2940 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
e0ipso/simple_oauth_21#63 ·
Maintainers usually reply within 1 day