Forum Discussion
FICO
17 years agoCommunity Manager
Role based access at template level
Role based access at template level Hi, I am trying to implement role based access in the repository. This is not a problem for entities/items, but we also need to be able to restrict access to cer...
FICO
17 years agoCommunity Manager
Found it
public override string[] getAllowedInstantiationValues(NdProviderContext ctxt)
{ NdTemplateManager templateManager = ctxt.getTemplateManager(); NdWorkspace workspace = templateManager.getWorkspace(); NdRepositoryConnection repositoryConnection = workspace.getRepositoryConnection(); return new String[] { repositoryConnection.getUser() }; }Although I thought I had tried this already, I must have done something wrong the first time around...
Instead of returning repositoryConnection.getUser(), I obviously need to look up roles, but that is what the authorization manager is for ;-)
Regards,
Jostein
Related Content
Related Content
Access rights to the Workbench data directory of Dockerized Workbench
I switched to Linux and found out that Linux version of Xpress does not include Workbench (nor IVE). (By the way, this information is rather hidden in the documentation.) I am therefore experimentin...11 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum7 unread comments7 unread1View0likes7Comments