Error posting when Item table has only Read Permission

rbindinirbindini Member Posts: 27
Hello
I'have a role with ITEM table permission like this:
Read: yes
Insert:
Modify: Indirect
Execute: Yes

When a user with this role try to post item journal (one line of positive adjustment), the system send error :
"You do not have permission to modify record in teh item table."

I would like user can posting item journal but not modify item with the form 30, how can I do?
Thank

Comments

  • matttraxmatttrax Member Posts: 2,309
    Security is synchronized? User has logged out and logged back in?
  • krikikriki Member, Moderator Posts: 9,110
    Your role should also have Indirect permission for insert.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • rbindinirbindini Member Posts: 27
    the Security is synchronized and user has logged out and logged back in.
    I add Indirect permission for insert
    The error is still present.
    :cry:
  • krikikriki Member, Moderator Posts: 9,110
    Are you sure the object that does the MODIFY has the modify permission for that table? (Check property Permissions in the object).
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • rbindinirbindini Member Posts: 27
    Hello,
    The problem is in the code unit 5804 ItemCostManagement that was called autmaticaly because "inventory setup" has "Automatic Cost Adjustment"=always.
    The item table has permision modify set to indirect, but the codeunit go in error anyhow when it was called from item posting.
    I solved the problem adding the permission modify on table item on the property of the code unit 5804, but i'm not sure that is the best solution.
    thanks
  • krikikriki Member, Moderator Posts: 9,110
    if codeunit 5804 does a MODIFY of the table, it needs the property. If it wasn't there, probably it was forgotten by MS. So, you find a bug to be reported to MS!
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.