Hi all.
I hope somebody can help me.
I have a small customer on 2.60, who just hired a new employee. This will be the first user, who isn't a superuser. The new user must be able to perform a number of tasks, but he must be restricted from seeing G/L Accounts, which is TableData 15.
If I try to remove read rights for TableData 15 from his roles, then he isn't able to post invoices and other tasks. But if he has read rights for G/L Accounts, then he can freely look at Chart of Accounts.
My thought is, that then I must restrict him on form level by granting him Execute rights to all forms EXCEPT Chart of Accounts. However, I can't find an easy way to do this without having to manually set 1200+ form rights to yes.
My question is twofold:
A) Am I taking the right approach to this? (by resticting on form level)
and
Is there an easier way to set up rights for a large number of objects at the same time?
Thanks in advance
and Happy holidays.
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Sorry, my memory failed me. What happens when I set indirect read rights to TableData 15 is:
The user can NOT open Chart of Accounts (good),
but the user can not post invoices either (very bad).
During the posting operation, it gives an error message saying that you need read rights for Tabel 15.
Just add the readrights to the object.
The error occurs in codeunit 12, if that's any help.
Good luck.
And I even learned something new today.
http://www.mibuso.com/forum/viewtopic.p ... highlight=
The user (who only has indirect read rights to table 15) opens an invoice (which has read rights to table 15 and so does the subform of the invoice).
Next the user stands on a line on the invoice, where the type of the line is Finance. He does a lookup on the number field and voila, the Chart of Accounts overview opens as it is supposed to.
Next the user creates a new line on the invoice. Type is finance, but when the user tries a lookup from the empty number field, he gets an error about missing read rights to table 15. ](*,)
Am I missing additional read rights on other objects, e.g. an underlying code unit? Is the read rights on the invoice form inherited by other objects instantiated by the invoice? Why can't I get anything to work today? (don't answer that last question 8-[ )
Add the debugger to the role you want to change
Start the debugger before you test only active, not on breakpoints
The debugger should point out the object that needs the permissions.
Good luck.
Is there a way to give a table read rights to another table? I can't find the Permissions property on Tables.
It's like the permissions on the objects aren't taken in to consideration in this special case :-k
I'm still clueless.
So the error must be from the system itself. That's kinda hard to fix, right?
You can also put in messages in the code to see what code is executed.
Or try the client monitor or code coverage.
But I just can't believe that nobody has solved this before. Surely there must be other companies with users who aren't allowed to see the full chart of accounts with balances and everything, but who still can create finance lines on an invoice using the Chart of Accounts list.
I needed to add read rights to table 15 on the following objects:
Table 37
Forms 18, 43, 44, 47 and 96
Code units 12, 80 and 378
Why must security be so difficult in Navision ? #-o
IT Manager
Laytons Wine Merchants Ltd