I recently discovered that class access can be controlled using scope declarations in the portal XML. I’m wondering if it’s possible to redefine these scopes in an extension to customize access, as an alternative to using profiles.
For example, I tried redefining the Organization class scope in an extension (with the intention of allowing all users to access all Organizations), but it doesn’t seem to have any effect.
Has anyone successfully done this, or could provide guidance on the right approach?
Hi Sean
thtat's the right approach and yes you cant customize via an extension all XML part of the datamodel
As you use alter the portal you need to make sur that your extension depends on the one define de portal which is itop-portal
so in the module file defining your extension you should have for instance
'dependencies' => array(
'itop-portal/3.2.1'
),
Else your extension may be loaded before and then will have no effect
Regards
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I recently discovered that class access can be controlled using scope declarations in the portal XML. I’m wondering if it’s possible to redefine these scopes in an extension to customize access, as an alternative to using profiles.
For example, I tried redefining the Organization class scope in an extension (with the intention of allowing all users to access all Organizations), but it doesn’t seem to have any effect.
Has anyone successfully done this, or could provide guidance on the right approach?
Hi Sean
thtat's the right approach and yes you cant customize via an extension all XML part of the datamodel
As you use alter the portal you need to make sur that your extension depends on the one define de portal which is itop-portal
so in the module file defining your extension you should have for instance
Else your extension may be loaded before and then will have no effect
Regards