Repository navigation
Why can't I make my co-teacher an administrator? #538
Answered
by
lumenpearson
lumenpearson
asked this question in
Q&A
|
I'm an administrator of our class. When I add the other class teacher, the bot offers only «Наблюдатель» and «Редактор». «✏️ Изменить роль» doesn't offer «Администратор» either. |
Answered by
lumenpearson
Oct 17, 2026
Replies: 1 comment
|
Applies to: any version — this is how the project works by design. An administrator can grant only roles below their own: «Наблюдатель» and «Редактор». Only the class's owner can make someone «Администратор».
What to do:
More: https://github.com/lumenpearson/lessons/blob/main/docs/bot.md#roles |
0 replies
Answer selected by
lumenpearson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Applies to: any version — this is how the project works by design.
An administrator can grant only roles below their own: «Наблюдатель» and «Редактор». Only the class's owner can make someone «Администратор».
can_grantinserver/app/services/roles.py: a granted role must be strictly lower than the granter's. The server checks every grant with that one function, from the bot and from the app alike. Both pickers offer only what it allows, so you never see «Администратор». The server answers a forged button press with «Нельзя выдать роль выше вашей».