Mercurial > libervia-backend
diff libervia/backend/core/constants.py @ 4184:50c919dfe61b
plugin XEP-0050: small code quality improvements + add `C.ENTITY_ADMINS` magic key to allow administrators profiles
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 10 Dec 2023 15:08:08 +0100 |
parents | da7d360a87be |
children | b26339343076 |
line wrap: on
line diff
--- a/libervia/backend/core/constants.py Sat Dec 09 19:20:13 2023 +0100 +++ b/libervia/backend/core/constants.py Sun Dec 10 15:08:08 2023 +0100 @@ -92,7 +92,12 @@ PROF_KEY_NONE = "@NONE@" PROF_KEY_DEFAULT = "@DEFAULT@" PROF_KEY_ALL = "@ALL@" + #: anybody ENTITY_ALL = "@ALL@" + #: Bare jids of administrators + ENTITY_ADMINS = "@ADMIN@" + #: bare jid of client's profile + ENTITY_PROFILE_BARE = "@PROFILE_BAREJID@" ENTITY_ALL_RESOURCES = "@ALL_RESOURCES@" ENTITY_MAIN_RESOURCE = "@MAIN_RESOURCE@" ENTITY_CAP_HASH = "CAP_HASH"