Back

What does this variable means?

  • 0
  • Self Hosted
  • Tools
Ketan
12 May, 2024, 16:46
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.
Ketan
12 May, 2024, 16:46

From src/Appwrite/Auth/Auth.php

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more