|
|
|
|
|
<Connection variable>.ModifyItemRights (Function) In french: <Variable Connexion>.ModifieDroitRubrique
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.
MyConnection is Connection
sRights is string
sRights = MyConnection.InfoItemRights("Smith", hRightsUnmask, "MyDatabase", "MyFile.fic", "MyItem")
MyConnection.ModifyItemRights("Davon", hRightsUnmask, sRights, "MyDatabase", "MyFile.fic", "MyItem")
Syntax
<Result> = <Connection>.ModifyItemRights(<User> , <Rights to modify> , <New values> , <Database> , <File> , <Item>)
<Result>: Boolean - True if the 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.Remark: HErrorInfo will return "Unknown user" or "Unknown group" if the current user tries to access information about a specific user or group but does not have enough permissions ( hRightsSeeUser constant).
<Connection>: 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. <Rights to modify>: Integer constant Right to modify: | | hRightsUnmask | Rights to unmask an item. |
<New values>: 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 user will inherit the right granted to the group to which they belong. |
<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 <Connection variable>.ModifyItemRights is run. There is no need to restart the server to apply the new rights. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|