Indirect Permission in Modify Item

amphysvenaamphysvena Member Posts: 113
Hi all,
In Security -> Roles -> Permission:
- I insert all of Table data, & give "Yes" permission for RIMD, except for Table Data Item (Object ID = 27). I give the Table Data Item, "Indirect" permission for IMD, & "Yes" permission for Read
- For Table, Form, Report, Code Unit, I give permission "Yes" for RIMD for all of the object

As far as i know, this would make the user can only modify the item indirectly.
But when the user post Purchase Receipt, it said that "You don't have permission to modify records in Item Table".

What should I do, so the user can only modify Data in Item table indirectly?
I'm using NAV 4.0 SP3.
Any help would greatly appreciated.
Thx

Answers

  • kinekine Member Posts: 12,562
    Turn on debugger and see where it will stop. You will find out the object in which the code is and on which you need to assign the indirect permissions.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • amphysvenaamphysvena Member Posts: 113
    The debugger stop at CU 5804 - ItemCostManagement.
    I've already give permission "Yes" on RIMD for this CU (I give it via Roles -> Permission). But still, I got the error.
    But if I set the permission in the ItemCostManagement property (TableData Item=rimd), the error gone.
    So if I want the item can only be modify indirectly,
    I have to set the permission in every object that modify record for Item?
    Thx for the reply
  • kinekine Member Posts: 12,562
    Yes. It is how it works. If user has indirect rights, all objects modifying the table must have permissions to that table.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • amphysvenaamphysvena Member Posts: 113
    Thanks for the reply.
    Is there a fast way to get every object that Modify, Insert & Delete records in Item?
  • kinekine Member Posts: 12,562
    You can use NDT to find where used with .MODIFY.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • amphysvenaamphysvena Member Posts: 113
    Ok, thanks alot for the help
Sign In or Register to comment.