Indirect permissions not working

Steve_Contris
Member Posts: 114
I have created a page that modifies the Item table. In the "Permission" property of this page I have checked Modify permission for object 27 - the item table. The user has a security role which has "Yes" permission to read the Item table and "Indirect" permission to modify the Item table. So, I figure this user should be able to read the Item table (which they can) as well as modify the table when using an object that has modify permission checked for the Item table.
However, when the user uses the page I created, they can read from the Item table but are unable to modify records in the table. An error comes up that the user does not have modify permissions for the Item table.
However, when the user uses the page I created, they can read from the Item table but are unable to modify records in the table. An error comes up that the user does not have modify permissions for the Item table.
What would Elvis do?
0
Comments
-
Look at codeunit 391 to see how indirect permissions can be used.0
-
Hi,Steve Contris wrote:I have created a page that modifies the Item table.
with best regards
Jens0 -
I finally figured it out.
I was running this newly created page (with permissions to modify the item table) from the Item page using RUNMODAL. When it was done updating the record (which was allowed with the indirect permissions in the user role) I was re-reading the record and doing a CurrPage.UPDATE. That is what was causing the error since the Item page has no permissions specified for the Item table. All I needed to do was the CurrPage.UPDATE alone and that causes it to reread the record and display with the altered data without giving the error message.
I guess re-reading the changed record at that point made it seem like I was trying to change the current record when I had no permissions to do so.
Thanks for the input on the issue.What would Elvis do?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions