From wiki.ginstr.com
Revision as of 13:04, 6 August 2019 by Dinko (talk | contribs) (Check if user does not have specific rights on defined table)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

gn:act_hasTableRights

Description
Action used to check whether logged in user has rights to a specific table or not.
To be used only after user has passed login at GnLogin widget.
If table is generated by ginstr launcher and is not “linked” with IW and SSO, then this action always returns true.
Action returns
boolean

Action signatures

Check if user has specific rights on defined table

[gn:act_hasTableRights]|[tableName==C;R;U;D]
Parameter Description
tableName Defines database table which will be checked for rights in user data. To be able to query the table from the external app use @externalTable/appId_tableId syntax
== compares if table rights on user match rights defined in this action, if yes it returns true. To return true all rights must match.
C;R;U;D defines rights types that can be checked on table

Possible values:

C (Create) creates data on defined table
R (Read) reads data from defined table
U (Update) updates data on defined table
D (Delete) deletes data on defined table

Example

bebraTimeRecordingsite - table name
== - comparsion type EQUAL
C - "create" right
[gn:act_hasTableRights]|[bebraTimeRecordingsite!=C]

Check if user does not have specific rights on defined table

[gn:act_hasTableRights]|[tableName!=C;R;U;D]
Parameter Description
tableName Defines database table which will be checked for rights in user data. To be able to query the table from the external app use @externalTable/appId_tableId syntax.
!= compares if table rights on user are different than in this action, if yes it returns true. To return true all rights must match.
C;R;U;D defines rights types that can be checked on table

Possible values:

C (Create) creates data on defined table
R (Read) reads data from defined table
U (Update) updates data on defined table
D (Delete) deletes data on defined table

Example

bebraTimeRecordingsite - table name
!= - comparsion type NOT EQUAL
C - "create" right
[gn:act_hasTableRights]|[bebraTimeRecordingsite==C]