Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SetUserRoleId: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
[[Category:User_Functions]]
[[Category:User_Functions]]
{{HelpFiles}}
[Obsolete - Please use [[SetResourceTemplateResourceId|SetResourceTemplateResourceId]] or [[User_class|User.ResourceTemplateResourceId]]]


====setUserRoleId====
====setUserRoleId====

Revision as of 10:11, 12 May 2022

[Obsolete - Please use SetResourceTemplateResourceId or User.ResourceTemplateResourceId]

setUserRoleId

Sets the user resource template for the user specified.

Syntax

setUserRoleId(userId, roleId)

Arguments

userId: is a number expression. It is the id of the user.

roleId: is a number expression. It is the id of the user role.

Return type

bool

Example

setUserRoleId(1, 1);

Availability

Version 5.4