IsObjectInACLGroup: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 13: Line 13:


===Returns===
===Returns===
Returns ''true'' if the object is in the specified group, ''false'' if it is not or invalid arguments where passed.
Returns ''true'' if the object is in the specified group, ''false'' otherwise.


==Example==  
==Example==  

Revision as of 22:24, 30 March 2009

This function is used to determine if an object is in a group.

Syntax

bool isObjectInACLGroup ( string theObject, string theGroup )

Required Arguments

  • theObject: the name of the object to check. Examples: "resource.ctf", "user.Jim".
  • theGroup: the name of the group to look in. Example: "Admin"

Returns

Returns true if the object is in the specified group, false otherwise.

Example

--TODO

See Also