Deprecated: Function set_magic_quotes_runtime() is deprecated in /homepages/1/d178422952/htdocs/visual-guard.com/forum/common.php on line 106
[phpBB Debug] PHP Notice: in file /includes/session.php on line 942: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 942: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 942: Cannot modify header information - headers already sent by (output started at /common.php:106)

Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /homepages/1/d178422952/htdocs/visual-guard.com/forum/viewtopic.php on line 927

Strict Standards: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /homepages/1/d178422952/htdocs/visual-guard.com/forum/viewtopic.php on line 927
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3545: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3547: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3548: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3549: Cannot modify header information - headers already sent by (output started at /common.php:106)
View topic - Create a permission upon criteria other than users roles? • Visual Guard Forum

Create a permission upon criteria other than users roles?

Create a permission upon criteria other than users roles?

Postby Novalys on Mon Jan 19, 2009 2:09 pm

How to enable/disable menu options on a frame based upon some criteria other than the user's role?
I am working on an application managing contracts.
A function of the application allows evaluating whether a contract opened in the form is valid or not depending on some information of the application.
I would like to enable/disable some menu options depending on the validity of the current contract.
Visual Guard .Net
Dotnet Security: Authentication, Authorization, Audit
http://www.visual-guard.com
Novalys
 
Posts: 373
Joined: Thu Jul 17, 2008 2:19 pm

Re: Create a permission upon criteria other than users roles?

Postby Novalys on Mon Jan 19, 2009 2:19 pm

The function will be evaluated dynamically when the property action has to be executed.
By default, the property action is executed when the security is loaded for the target object. But, you can change the event to trigger the action by clicking on the button "Select event..." when you create or change the property action.

In case of a property change, there are 2 possibilities:
1 - you trigger an event related to the VG Property Action
2 - An event is automatically triggers next to the property change, and you associate this event to the VG Property Action

Bottom line, when the property change happens, the event is triggered and the VG Property Action is executed (if the condition evaluating your function is successful).



Visual Guard .NET - Version 2.8.812.19
Visual Guard .Net
Dotnet Security: Authentication, Authorization, Audit
http://www.visual-guard.com
Novalys
 
Posts: 373
Joined: Thu Jul 17, 2008 2:19 pm


Return to How to create and manage permissions

cron