Autocomplete permission

オープン
#7,795 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
php, symfony

調査の方向性

まず、示されている autocomplete の権限チェックを追跡し、既存の index の権限処理と比較します。これらの権限がどこで定義され、使用されているかを特定します。autocomplete を独立して付与でき、index へのアクセスは制限されたままになれば完了です。

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

説明

The permissions required to access autocomplete are the same as those required to access the index. There should be a dedicated permission for autocomplete.

// not a typo; we intentionally reuse the INDEX action for permission checks in autocomplete
if (!$this->isGranted(Permission::EA_EXECUTE_ACTION, ['action' => Action::INDEX, 'entity' => null, 'entityFqcn' => $context->getEntity()->getFqcn()])) {
    throw new ForbiddenActionException($context);
}

Example:

User 1 is allowed to administer the entity (and therefore has access to the index).

User 2 should be allowed to use the entity through autocomplete without being able to access the index.

主要言語
PHP
スター
4.3k
フォーク
1.1k
平均マージ
2日 9時間
マージ済み PR(30日)
52

環境構築

はじめの一歩

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

EasyCorp/EasyAdminBundle のほかの issue

EasyCorp/EasyAdminBundle の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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