SE_layer_grant_access

Sets access privileges for a layer base table.

Usage syntax

LONG SE_layer_grant_access (SE_CONNECTION connection, const CHAR *table, const CHAR *column, LONG privilege, BOOL grant, const CHAR *user);

Parameters
connection The connection handle
table The table name
column The column name
privilege The access privilege to grant
grant If TRUE, the user may grant access privileges to other users
user The user name
Description

SE_layer_grant_access confirms that the layer base table exists and contains the specified geometry column. If it does, this function gives a user the specified level of privileges to the specified layer. If grant is TRUE, then the user in turn can pass the privileges on to another user. The access privileges that can be granted are:

SE_SELECT_PRIVILEGE  /* User can view the layer table contents */

SE_UPDATE_PRIVILEGE  /* User can modify the layer table contents */

SE_INSERT_PRIVILEGE  /* User can insert new records in the layer table */

SE_DELETE_PRIVILEGE  /* User can delete records from the layer table */

Grant multiple privileges to a user with the OR operator and the appropriate privilege masks.

Privileges can only be granted by the owner of the layer.

Returns

SE_SUCCESS
SE_FAILURE

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_LAYER_NOEXIST

SE_NET_FAILURE

SE_NO_PERMISSIONS

SE_SDE_NOT_STARTED