AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL Client/Server
  • When are rights changed?
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Modifies the rights granted to a user or group on an item of an HFSQL Client/Server data file.
Example
// Copie des droits d'un utilisateur à un autre
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:
hRightsUnmaskRights to unmask an item.
<New value>: Integer constant
New value for the right. The possible values are as follows:
hAllowedThe relevant rights are granted to the user or group.
hForbiddenThe relevant rights are not granted to the user or group.
hInheritThe 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
Component: wd300hf.dll
Versión mínima requerida
  • Versión 2024
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 12/06/2025

Señalar un error o enviar una sugerencia | Ayuda local