File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ interface IAccessManager {
196196 * Requirements:
197197 *
198198 * - the caller must be a global admin
199+ * - `roleId` must not be the `ADMIN_ROLE` or `PUBLIC_ROLE`
199200 *
200201 * Emits a {RoleLabel} event.
201202 */
@@ -254,6 +255,10 @@ interface IAccessManager {
254255 * Requirements:
255256 *
256257 * - the caller must be a global admin
258+ * - `roleId` must not be the `ADMIN_ROLE` or `PUBLIC_ROLE`
259+ *
260+ * NOTE: Setting `admin` to the `PUBLIC_ROLE` is allowed, but the target `roleId` itself
261+ * must not be a locked role (`ADMIN_ROLE` or `PUBLIC_ROLE`).
257262 *
258263 * Emits a {RoleAdminChanged} event
259264 */
@@ -265,6 +270,10 @@ interface IAccessManager {
265270 * Requirements:
266271 *
267272 * - the caller must be a global admin
273+ * - `roleId` must not be the `ADMIN_ROLE` or `PUBLIC_ROLE`
274+ *
275+ * NOTE: Setting `guardian` to the `PUBLIC_ROLE` is allowed, but the target `roleId` itself
276+ * must not be a locked role (`ADMIN_ROLE` or `PUBLIC_ROLE`).
268277 *
269278 * Emits a {RoleGuardianChanged} event
270279 */
@@ -276,6 +285,7 @@ interface IAccessManager {
276285 * Requirements:
277286 *
278287 * - the caller must be a global admin
288+ * - `roleId` must not be the `PUBLIC_ROLE`
279289 *
280290 * Emits a {RoleGrantDelayChanged} event.
281291 */
You can’t perform that action at this time.
0 commit comments