Checkpermission method of GAMRepository Object

Official Content
This documentation is valid for:

Verifies whether the GAM user currently logged in has a given permission or not.

Syntax

GAMRepository.CheckPermission(PermissionName​​​​)

Where:

GAMRepository
     
Is a fixed part of the syntax. Read more at GAM - Repository.
 
PermissionName
   
 Input parameter corresponding to the permission name. This parameter must be of Character data type based on GAMDescriptionLong.

Type Returned: 
GAMBoolean

Samples

Event Start
  If GAMRepository.CheckPermission("is_gam_administrator")
      //OK
    Else
      GAMExampleNotAuthorized.Link()
  Endif
EndEvent

See Also

GAM - Permissions