Does a user have _any_ access roles to this project, or a parent project?

Namespace: SynergyServerScripting.Entities
Assembly: SynergyServerScripting (in SynergyServerScripting.dll)

Public Shared Function CanUserAccess( _ 
ByVal user_id As EntityID, _ 
ByVal project_id As EntityID, _ 
ByVal check_parents As Boolean, _ 
ByVal db As IDatabase
) As Boolean
This language is not supported or no code example is available.
public static bool CanUserAccess( 
EntityID user_id
EntityID project_id
bool check_parents
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static bool CanUserAccess( 
EntityID^ user_id
EntityID^ project_id
bool check_parents
IDatabase^ db 
)
This language is not supported or no code example is available.
public static function CanUserAccess( 
user_id : EntityID
project_id : EntityID
check_parents : boolean
db : IDatabase 
) : boolean;
This language is not supported or no code example is available.

Parameters

user_id
Type: EntityID

the id of the user to check

project_id
Type: EntityID

the Job id to check

check_parents
Type: bool

should we check the parent projects?

db
Type: IDatabase

a database connection

Return Value

Type: bool

true if we have access

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1