|
|
|
|
HInfoLawRubric (Function) Allows you to find out which rights have been granted to a section. sDroit is string
sDroit = HInfoItemRights("CNX", "Dupont", hRightsUnmask, "MaBase", "MonFichier.fic", "MaRubrique")
SWITCH sDroit
CASE hAllowed
...
CASE hForbidden
...
CASE hInherit
...
END
Sintaxis
<Result> = HInfoDroitRubrique(<Connection> , <User/Group> , <Rights> , <Database> , <Data file> , <Item> [, <Display mode>])
<Result>: Character string - Requested information,
- Empty string ("") if an error occurred.
- "Unknown user" or "Unknown group" if the current user has no permissions to see other users (hRightsSeeUser constant) and wants to get information about another user or group.
In hDefault mode, <Result> is a list of values separated by tabs. Each value in the list corresponds to the rights requested by <Rights>. The values in the list can correspond to one of the following constants: | | hAllowed | The relevant rights are granted to the user or group. | hForbidden | The relevant rights are not granted to the user or group. | hInherit | The user belongs to at least one group to which the relevant rights were granted. This constant is returned only if the display mode is not set to hEffective. |
In hDetails mode, <Result> is a list of values with the following format:
<Droit considéré 1> + TAB + <Valeur du droit 1> + RC + ... <Droit considéré N> + TAB + <Valeur du droit N> + RC The rights correspond to the constants used in the <Rights> parameter and the values of the rights correspond to the hAllowed, hForbidden or hInherited constant (see the above table).
<Connection>: Character string or Connection variable Connection for which the rights of a user or group of users must be known. This connection corresponds to: <User/Group>: Character string Name of the user or group whose rights must be known. <Rights>: Integer constant List of rights to find: | | hRightsUnmask | Right to de-anonymize anonymized section. |
<Database>: Character string Name of the database containing the of the data file field for which the rights are being searched.. If the database corresponds to the one defined in the connection, this parameter can correspond to an empty string (""). A WLanguage error occurs if no database is defined in the connection and if this parameter corresponds to an empty string. <Data file>: Character string Name of the data file HFSQL containing the field for which rights are being searched. The extension of the data file must be specified. <Item>: Character string Name of the item for which rights are being searched. <Display mode>: Optional Integer constant Result display mode: | | hDefault (Default value) | The rights returned do not take the inherited rights into account (rights granted to the groups to which the user belongs). If no rights were defined, the value will be set to hInherit. <Result> contains the values of the requested rights (in the same order). | hDetails | Same as hDefault. <Result> contains the rights and there value. | hEffective | The rights returned correspond to the rights actually granted to the user or to the group on the data file. The inherited rights are taken into account (rights granted to the groups to which the user belongs for instance). | hEffective + hDetails | Same as hEffective. <Result> contains the rights and there value. |
Clasificación Lógica de negocio / UI: Lógica de negocio
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|