Notifications: the Backup alerts row never shows

オープン 初心者向け
#755 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
laravel, php, react, typescript

調査の方向性

resources/js/pages/account/notifications.tsx の79行目付近から始めてください。ここでは、バックアップアラートの行が auth.user.capabilities.includes('backups.alert') によって制御されています。この判定を backups.manage に変更し、app/Domain/Notices/BuiltInNotices.php は変更しないでください。これは権限ではなく通知の種類を定義しているためです。管理者には行が表示され、編集者には表示されないことを示すテストを追加してください。バックアップ管理者に対して「常に送信」パネルに3行表示され、新しいテストが通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

area/admin type/bug when/soon

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.

主要言語
PHP
スター
1
フォーク
1
平均マージ
1時間 40分
マージ済み PR(30日)
143

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

temecms/teme のほかの issue

temecms/teme の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。