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.

UpdateGroupResourceIdPermission: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
No edit summary
Tungocman (talk | contribs)
No edit summary
Line 21: Line 21:
* Resource_Permission_Write
* Resource_Permission_Write


* Resource_Permission_Full
* Resource_Permission_FullControl


== Return type ==
== Return type ==

Revision as of 04:16, 23 March 2018


updateGroupResourceIdPermission

Grant groups have permission to a resource

Syntax

updateGroupResourceIdPermission(resourceRId, groupPermission);

Arguments

resourceRId: number. Resource Id of a resource

groupPermission: Dictionary for group permission. EX: {groupRId1: permission, groupRId2: permission}.

Permission constant:

  • Resource_Permission_Read
  • Resource_Permission_Write
  • Resource_Permission_FullControl

Return type

Empty

Example

//grant permission for group to a resource
number resourceRId = 11088827;
number groupRId1 = 15596764;
number groupRId2 = 15085949;
number groupRId3 = 11051956;
Dictionary groupPermission = {
	groupRId1: Resource_Permission_Read,
	groupRId2: Resource_Permission_Write,
	groupRId3: Resource_Permission_FullControl
};
updateGroupResourceIdPermission(resourceRId, groupPermission);

Access of the resource before grant

Access of the resource after grant