@GetDBCurrentAccess
Syntax
@GetDBCurrentAccess(DBHANDLE1);
@GetDBCurrentAccess(DBHANDLE1;NRETFLAGS);
Description
For the DB with the DBHANDLE DBHANDLE1 the current access level at the time of the call and, optionally, the currently effective flags (NUMBER NRETFLAGS) are returned.
In case of an error, @Error is returned.
USERLEVELS:
The corresponding ACL level
6=(Manager) Manager
5=(Developer) Entwickler
4=(Editor) Editor
3=(Author) Autor
2=(Reader) Leser
1=(Depositor) Archivar
0=(No Access) Kein Zugriff
NRETFLAGS:
The corresponding privileges
ACC Author can create new documents
CPA Create Personal Agent allowed
CPF Create Personal Folder/View allowed
CD Can Delete (at a level >= Author, in Notes V3 and Engine >= V2.04)
CF Create Folder allowed
CLS Create LotusScript allowed
ASRV Admin Server entry
SRV Server entry
PRS Person entry
GRP Group entry
RPD Read Public Documents
WPD Write Public Documents
Example @GetDBCurrentAccess(DBHANDLE1):
DBHANDLE1:=@OpenDB("TEST.NSF");
LEVEL:=@GetDBCurrentAccess(DBHANDLE1);
@LogReport(LEVEL;3);
DBHANDLE1:=@CloseDB(DBHANDLE1);
Der variable LEVEL is assigned the currently effective access level (for example 6 for Manager) and output.
Example @GetDBCurrentAccess(DBHANDLE1;NRETFLAGS):
DBHANDLE1:=@OpenDB("TEST.NSF");
LEVEL:=@GetDBCurrentAccess(DBHANDLE1;NRETFLAGS);
@LogReport(LEVEL;3);
@LogReport(NRETFLAGS;3);
DBHANDLE1:=@CloseDB(DBHANDLE1);
Der variable LEVEL is assigned the currently effective access level (for example 6 for Manager) and output.
Der variable NRETFLAGS is assigned the currently effective access flags (for example "CD,CPA" for "Can Delete" and "Create Personal Agent allowed") and output.
Note : This text was machine-translated and may contain inaccuracies.
