From Dwayne Wright
FMP Version: FileMaker 7 And Higher
Returns A Number Result
A privilege set can be used to apply precise control over what a user can or cannot do for a particular layout. The layout access privilege options are ...
All modifiable - This setting will allow anyone, using this privilege set, to modify all layouts within the file.
All view only - This setting will allow all layouts to be viewable but they cannot be modified. This privilege settings will not allow it's users access to layout mode changes.
All no access - All layouts will toss up an Access Denied gray screen over the layout.
Customized - With this setting, all layouts can have customized and individual settings. From the customized layout access dialog box, you can choose if a layout can be modified, viewed or has a no access setting. This can also be setup for records on that layout with the same three settings.
So back to the Get(LayoutAccess) function, it will return a number result that corresponds to a users layout access. It will only return information about the layout access and that may not tell you the entire story. FileMaker security can be layered, like an onion. You might have modifiable access to a layout but have record restrictions. This function will not return information about record level access settings. That would be done with the Get(RecordAccess) function. Here is what the function will return based upon the layout access of the user when the function is called upon 0 for no access, 1 for view only access or 2 for modifiable access to the layout.
More info about the author and FileMaker in general, contact me at firstname.lastname@example.org.
© 2007 - Dwayne Wright - dwaynewright.com
The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.