CheckOrgPermission Method
Description
Checks the organization setting for a given permission, as defined in the admin/sec_organization.asp page, using the Microsoft Office Project Server 2003 security object.
Syntax
Function CheckOrgPermission( _
ByVal fea_act_id As Long _
) As Long
Parameters
Parameter | Description |
---|---|
fea_act_id |
Required Long. The permission ID to check. |
Return Value
The CheckOrgPermission method returns True (1) or False (0) as a Long (4-byte integer) value.
Example
The following example is for Microsoft Visual Basic 6.0.
Dim lResult as Long
Set oSec = CreateObject("PjSvrSecurity.PjSvrSecurity")
oSec.SetDBConnection "ProjectServer"
lResult = oSec.CheckOrgPermission(101)
Set oSec = Nothing