added LSL2 stored procedures
This commit is contained in:
15
LSL2/STPROC/MEMBEROF.txt
Normal file
15
LSL2/STPROC/MEMBEROF.txt
Normal file
@ -0,0 +1,15 @@
|
||||
COMPILE FUNCTION MemberOf(User,Group)
|
||||
|
||||
$INSERT LOGICAL
|
||||
$INSERT LSL_USERS_EQU
|
||||
|
||||
UserGroups = XLATE( 'LSL_USERS', User, LSL_USERS_GROUPS$, 'X' )
|
||||
|
||||
LOCATE Group IN UserGroups USING @VM SETTING Dummy THEN
|
||||
Valid = TRUE$
|
||||
END ELSE
|
||||
Valid = FALSE$
|
||||
END
|
||||
|
||||
RETURN Valid
|
||||
|
Reference in New Issue
Block a user