reading user permission

guidorobbenguidorobben Member Posts: 157
Hi,

On a requestform I want to check If a user has rights on a certain table(only tables for now.. ). I use the current function to read the rights.


FuncReadTablePermission(TableID: Integer)
RecRef.OPEN(TableID);
RecRef.SETPERMISSIONFILTER;
IF RecRef.READPERMISSION THEN
EXIT(TRUE)
ELSE
EXIT(FALSE)

This returns me the read permission of a certain table. I have a few questions about this. Is this the best/easiest way? And is there a way to read al the permissions at once. I want to use this to return this value and let that object check the return value to do it's on code.

Now I have to do this:

FuncReadTablePermission (DATABASE::Customer);
FuncWriteTablePermission (DATABASE::Customer);
etc...


So is there an easier way to get all the permissions at once??

Regards,

Guido
Sign In or Register to comment.