[docs] Improve documentation around capability contextlevel in the docs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 55/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Ambito
- documentation
Direzione di ricerca
Apri la pagina di documentazione collegata sulle capabilities e inizia da «How to define new capabilities in plugins», esaminando le indicazioni esistenti su contextlevel. Aggiungi una spiegazione chiara di ciò che controlla contextlevel, incluso il motivo per cui le capabilities a livello di sistema non possono essere sovrascritte a un livello inferiore della gerarchia dei contesti, quindi verifica la documentazione renderizzata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What is the URL of the page?
https://moodledev.io/docs/5.0/apis/subsystems/access#how-to-define-new-capabilities-in-plugins
What is the issue with this page?
In the dev chat there was a discussion around what contextlevel on capabilities does and means we seemed to come up with a good description that is not included in the docs at the moment:
It indicates what context you intend to check the capability at, and does control where it appears, for instance moodle/site:config is defined as CONTEXT_SYSTEM and that means you can't change it at lower levels. If you go to a course (or category, or module or block, or user for that matter) and try to override capabilities there, that one doesn't show on the list. Because if you did override it in a course, it wouldn't make any difference when you check it as context system.
It seems that adding this or something similar will help people understand what contextlevel they should choose to use better.
Are you able to provide a patch for this?
If no one picks this up sooner, I'll likely do it next week
- Lingua principale
- TypeScript
- Stelle
- 74
- Fork
- 652
- Merge medio
- 2g 50m
- PR unite (30g)
- 12
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di moodle/devdocs
-
bug documentation help wanted needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
documentation enhancement help wanted needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug documentation help wanted needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
-
bug documentation good first issue needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
-
bug documentation help wanted needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
Tutte le issue di moodle/devdocs
Issue simili
-
blocklist removal
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pastelsky/bundlephobia#1122 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100