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
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...