0

I had figured out how to embed ftl with css and bootstrap to the screen (Screens.xml). Unfortunately, I am encountering problems with the controller.xml file of the component that I created. Whenever I try to run ant load-demo start after finishing up the controller.xml, it prompts "You are not allowed to view this page."

I haven't seen good solutions for this problem.

Ashish Kakkad
  • 23,586
  • 12
  • 103
  • 136
J. Abrea
  • 11
  • 2

2 Answers2

0

I can't comment on your question as I don't have enough reputation points :D. Your problem seems like a component permission issue. Check if your new component has this in your ofbiz-component.xml:

<webapp name="yourComponentName"
       title="yourComponentTitle"
       server="default-server"
       base-permission="OFBTOOLS"
       location="webapp/yourComponent"
       mount-point="/yourComponent"
       app-bar-display="false"/>  

Thing to notice here is the base-permission. If you are logged in as an admin(who has by default OFBTOOLS as there base permission) you'll not be facing any issue.

newbie
  • 663
  • 2
  • 6
  • 19
0

Just fixed a similar problem: search for

    <if-has-permission permission="WHATEVER" action="_VIEW"/>

I found it in CommonScreens then added a permission manually (WHATEVER_VIEW) to the new security group that I had created for the new user login that I had created.

(https://localhost:8443/webtools/control/addSecurityPermissionToSecurityGroup)

This controls security at the level of the particular screen.

user1069528
  • 618
  • 1
  • 13
  • 29