Skip to main content
1-Visitor
March 9, 2016
Solved

Disable the import plan option in product manager profile

  • March 9, 2016
  • 3 replies
  • 2841 views

I have to disable the option of Import Plan for a particular role/user in a Project created by me.  I tried doing it using Policy Administration, but could not do it. Please let me know how to do.

Best answer by prathi

Hi,

To solve this we wrote a validator and defined the roles these itself. It worked. 

3 replies

23-Emerald II
March 9, 2016

Prasad,

I took a look at the validator code used to determine if Import Plan should be enabled in the menu. It checks whether or not the user has Modify permission in the Project's /System domain on the Plan object. I created the following permission on my system and it disabled the action for that user:

3-9-2016 9-46-17 AM.jpg

3-9-2016 9-47-52 AM.jpg

You can use a regular Deny, rather than an Absolute Deny, on the Modify permisssion, too. I just used Absolute Deny for testing to make sure that it would definitely get applied.

prathi1-VisitorAuthor
1-Visitor
March 10, 2016

Lori,

I tried using the solution you gave but still, i did not get the solution. Have look at these screenshots.P1.PNGP2.PNGP3.PNGP4.PNG

I tried Giving Deny/Absolutely Deny to Modify only but it did not worked, then i did same for all permissions except Read, doing this disabled all options which were disabled for you except Import Plan. Please check let me know if there is any mistake in what i did.

23-Emerald II
March 10, 2016

Prasad,

Can you enable access control logging and post the log for this:

1. As site admin user go to Site > Utilities > Server Status > Monitoring Tools > Log Levels

2. Right before you are ready to load the plan page as the demo user set the wt.access logger level to ALL

3-10-2016 10-04-36 AM.jpg

3. As the demo user load the project plan page and display the menu

4. As the site admin user set the logger level back to ERROR on the Log Level page.

5. Collect the Method Server log and attach it here.

prathi1-VisitorAuthor
1-Visitor
March 11, 2016

Hi,

As required by you I have attached the Log and the Screenshot. I have tried it for a different role (Team Member) and different user (Test 3). I have made the necessary changes in ACL.

Screenshot (302).png

prathi1-VisitorAuthorAnswer
1-Visitor
April 1, 2016

Hi,

To solve this we wrote a validator and defined the roles these itself. It worked.