Skip to main content

valid_read

Discworld driver help

valid_read

Name

valid_read - checks if a certain person has read permission on a file

Synopsis

int valid_read( string file, mixed user, string func );

Description

Every time a user tries to read a file, thie driver calls valid_read in the master object to check if the read should be allowed. The arguments are the filename, the name of the person making the read, and the calling function name. If valid_read returns non-zero, the read is allowed.

See also

valid_write(4)