Disable Inheritance |
Scroll |
Some permissions may be inherited from a base object. Such inherited permissions cannot be modified locally. It is, however, possible to stop inheritance for a loaded object. When you stop inheritance, you can choose whether you want to copy all permissions from the parent or have them cleared.
Warning: Be careful when you stop inheritance without copying permissions. If you save changes without adding new local permissions you can easily end up removing your own permissions on the object.
1 |
Connect to the Thereforeâ„¢ server (see "Server - Connect and Disconnect" for Details) |
2 |
Declare and initialize a new TheSecurity instance. |
3 |
Load permissions for an object. |
4 |
The code sample shows three ways to stop inheritance. 4A and 4B have the exact same effect. Both stop inheritance and clear all previously inherited permissions. 4C copies all previously inherited permissions to local ones. Warning: Be careful when you stop inheritance without copying permissions. If you save changes without adding new local permissions you can easily end up removing your own permissions on the object. |
5 |
Save changes on the server. |
Requirements and Assumptions: Category number 9 exists in your Thereforeâ„¢ system. If these assumptions do not apply to your system or configuration please replace them with appropriate values when copying the code samples below. |