|
|
|
|
|
HModifyItemRights (Function) In french: HModifieDroitRubrique
Available only with this kind of connection
Modifies the rights granted to a user or group on an item of an HFSQL Client/Server data file.
sDroits is string
sDroits = HInfoItemRights("MaConnexion", "Dupont", hRightsUnmask, "MaBase", "MonFichier.fic", "MaRubrique")
HModifyItemRights("MaConnexion", "Durand", hRightsUnmask, sDroits, "MaBase", "MonFichier.fic", "MaRubrique")
Syntax
<Result> = HModifyItemRights(<Connection> , <User> , <Right to modify> , <New value> , <Database> , <File> , <Item>)
<Result>: Boolean - True if rights have been modified,
- False otherwise. HErrorInfo is used to identify the error.
No modification is performed if the new value is already assigned to the specified rights.Note: An "Unknown User" or "Unknown Group" error will be returned by the HErrorInfo function if the current user does not have the user viewing right (constant hDroitVisualisationUtilisateur) and is requesting information about another user or group.
<Connection>: Character string or Connection variable Connection for which the rights granted to a user or group of users should be modified. This connection corresponds to: <User>: Character string Name of the user or group whose rights should be modified. <Right to modify>: Integer constant Right to modify: | | hRightsUnmask | Rights to unmask an item. |
<New value>: Integer constant New value for the right. The possible values are as follows: | | 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 right is undefined at this level for the user (or the group to which they belong). The HFSQL server uses the right defined at the top level for the user (or the group to which the user belongs). For a field, the HFSQL server uses the right defined for the user (or the group to which the user belongs) at data file level. |
<Database>: Character string Name of the database containing the data file item for which to modify the rights. - 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.
<File>: Character string Name of the data file for which the rights should be modified. <Item>: Character string Name of the item for which the rights should be modified. Remarks When are rights changed? Rights are modified when HModifyItemRights is run. There is no need to restart the server to apply the new rights. Business / UI classification: Business Logic
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|