Privileges
Privileges
General Information
The privilege service represents a mechanism for managing users' special capabilities. Privileges give users access to exclusive functions and visual elements that are unavailable to regular users.
Privilege Types
The system presents the following types of privileges:
Access
Basic privilege type that provides access to specific functions or sections. Used when it's necessary to simply grant permission for certain actions.
Avatar Animation
Allows users to apply animation to their avatar. This privilege is cosmetic in nature and enhances the visual uniqueness of the user's profile.
Avatar Border Color
Provides the ability to change avatar border color. Users with this privilege can distinguish their profile with unique color styling.
Stickers
Provides users with access to exclusive stickers that can be used in chats or other interactive platform elements.
Username Change
Allows users to change their name. This privilege may be limited by the number of uses.
Username Color
Provides the ability to set a custom username color, which distinguishes the user in general lists and chats.
Business Processes
Privilege Assignment
Privileges can be assigned to users in several ways:
- Individual Assignment: Administrator can assign a privilege to a specific user.
- Mass Assignment: Administrator can assign privileges to a group of users simultaneously.
- Automatic Assignment: Privileges can be assigned automatically when certain conditions are met (e.g., reaching a certain level, store purchase).
Privilege Restrictions
Privileges can have the following restrictions:
- Time Restrictions: Privilege can be valid for a limited period of time (in hours). After expiration, the privilege is automatically disabled.
- Quantity Restrictions: Privilege can have a limitation on the number of uses. After reaching the usage limit, the privilege becomes unavailable.
Privilege Verification
The service constantly checks for appropriate privileges when users perform certain actions:
- Type Check: Verifies if the user has a privilege of a specific type.
- Usage Validation: Checks if the user can use a specific privilege considering all restrictions (time and quantity).
Privilege Revocation
Privileges can be revoked in the following cases:
- Administrative Revocation: Administrator can manually revoke a user's privilege.
- Automatic Expiration: Privilege is automatically revoked after expiration or exhaustion of usage count.
Visual Effects of Privileges
Some privileges provide users with visual effects:
- Name Color: Allows users to choose the display color of their name on the platform.
- Avatar Border Color: Allows customizing the color of the border surrounding the user's avatar.
- Avatar Animation: Adds dynamic effects to the user's avatar.
