DISABLE_OBJECT_AUTH
Feature available from Bizview version - Bizview 8.1.4 & 8.3
= optional in PARAM sheet
Parameter (col A in PARAM) | Mandatory/Optional | Value in col C (example) | Value in col D (example) | Value in col E (example) | Occurrence in PARAM sheet | Comment | |
---|---|---|---|---|---|---|---|
FORM | REPORT | ||||||
DISABLE_OBJECT_AUTH | <object ID> separate with # if several object should be omitted from the authorization check | n/a | n/a | max once for each section | If a report or form should NOT consider authorization rules on a specific object that is defined for a user or organization, then this parameter can be defined in the template. In other words, if a user in a report should be able to view the result for every unit, but when generating a budget form should only be able to view a specific unit, then this parameter can be defined in the result report and the user will then for that particular report be able to view figures for all units. |
DISABLE_OBJECT_AUTH is an optional parameter that should be used if the user/org authorizations to a specific object should be disregarded when opening the specific report/form in which this parameter is defined. The parameter can be defined for the whole template or for a specific section in a template.
By default, authorizations to object values (that can be defined for a user or organization) are always added to the SQL queries that are created when a report or form is generated. To disable that authorizations rules are added to the SQL queries in a particular template then this parameter can be defined in PARAM if there are specific objects that should be omitted. If an authorization rule should be omitted completely in a specific template, then the parameter DISABLE_AUTH can be used instead.
This parameter can be useful if a user has access rules on both UNIT and ACCOUNT, but should be able to view a result report for all units (only the accounts that the user has access to). For all other reports and forms, the user should only have access to one particular unit. Then DISABLE_OBJECT_AUTH for the object UNIT could be defined in the result report. Bizview would then open the report and omit the access rule for the object UNIT, but add the access rule for ACCOUNT that is defined for the specific user.
Note: If the template contains both the parameter DISABLE_AUTH and DISABLE_OBJECT_AUTH, then Bizview will use the DISABLE_AUTH parameter and omit all authorization rules.
Access this feature from the Template Design right panel by selecting Parameters > Disable > Disable Authorization for Specific Object(s).
From here, you can view existing objects defined for disable authorizations in a grid, and you can also add new objects to disable, edit existing, and delete. If the template contains more than one section, you will also be able to view which section each disable object is defined.
For Disable Object Authorization parameter, select or enter the specific object you want to omit from the authorization check when opening the report/form. If the template contains several sections you can also define if it should apply to a specific section in the template, or leave section blank and it will apply to all sections.
The objects defined in the right panel will be written automatically to the PARAM sheet for parameter DISABLE_OBJECT_AUTH (several objects will be separated with # in column C for this parameter).