company logo

CTX_DBBase :: IsPermitted - Check access permission

The function returns, whether the application is allowed to call the action passed in sActionName (true) or not (false). The function is called internally before executing an action or function.

By default, the function returns true. In order to perform permission checks, the permitted() function has to be overloaded in a user specialized context class. When not being overloaded, the function call is passed to the database context adding the context type name, i.e. one may perform permission checks in database context completely instead in each context class separately.

When the context handle does not refer to a valid context instance the function throws an exception.

Return value:  Return code from main function ( int  )

Implementation details