string CCourse::GetPermission( int COURSE_ID );
The GetPermission method returns the access permissions of a current user for the specified training course.
| Parameter | Description |
|---|---|
| COURSE_ID | The course ID. |
The following values can be returned: "D" - deny, "R" - read, "W" - write, "X" - full access (write access and permission to edit other's permissions).
<?
$permission = CIBlock::GetPermission($id);
if ($permission<"X")
return false;
?>| © 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |