TypeScript
public const USER_ROLE_ANY = 'any';
public const USER_ROLE_GUESTS = 'guests';
public const USER_ROLE_USERS = 'users';
public const USER_ROLE_ADMIN = 'admin';
public const USER_ROLE_DEVELOPER = 'developer';
public const USER_ROLE_OWNER = 'owner';
public const USER_ROLE_APPS = 'apps';
public const USER_ROLE_SYSTEM = 'system';
especially USER_ROLE_ADMIN, USER_ROLE_DEVELOPER, USER_ROLE_OWNER, USER_ROLE_APPS, USER_ROLE_SYSTEM?
TL;DR
Developers are confused about the meaning of certain variables in the code. They are asking about the definitions of USER_ROLE_ADMIN, USER_ROLE_DEVELOPER, USER_ROLE_OWNER, USER_ROLE_APPS, USER_ROLE_SYSTEM in the code snippet.
Solution:
- USER_ROLE_ADMIN: Represents the admin user role.
- USER_ROLE_DEVELOPER: Represents the developer user role.
- USER_ROLE_OWNER: Represents the owner user role.
- USER_ROLE_APPS: Represents the apps user role.
- USER_ROLE_SYSTEM: Represents the system user role.From src/Appwrite/Auth/Auth.php
Recommended threads
- [SOLVED] Error upgrading from 1.8.1 to 1...
DO Self-hosted server failed to upgrade with this error "Error response from daemon: client version 1.52 is too new. Maximum supported API version is 1.42". U...
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.