After Update to 11 "User do not have doctype access via role permission"

Hi All,

I have just moved to V.11 updating from 10 … upgrade was fin, no errors.

when Manager try to approve a stock entry error message appear, I have not yet tested everything, but every thing seems fin.

oh for extra confusion , order some time get approve with blue error , and in other cases dose not with red error

any help on this please ?

I am facing the same issue and raised it about a month ago and no one has picked it up.

From this i see the issue is not unique to me. It is therefore a bug and this post should be categorized as such.

3 Likes

I’m having the same issue too and I cannot change doctypes

Some suggestions -

Maybe check for issues and add or report problems? Issues · frappe/frappe · GitHub

Be sure to update to get latest commit changes for eg fix: More verbose User permission message by netchampfaris · Pull Request #7070 · frappe/frappe · GitHub

I have raised the issue here:

https://github.com/frappe/frappe/issues/7144

I hope someone picks it up soon.

Could it be related to several of the changes introduced to the permission schemes in v11? E.g. also the access to Employees is restriced:


I needed to adjust permissions to get this working after v10 to v11 upgrade. Hope that helps…

1 Like

Yes while it is connected to changes made to permission schemes in V11, the issue is strange because this happens to users who are not restricted on the doctype via permissions. The users are given broad doctype permissions which removes the Restricted icon visible at the top right end of your screenshot, however the error shown in the screenshot above persists. The first slides in the gif below shows the user does not have Restricted on his purchase order doctype yet the permission error pops up.

What makes it even more weird is the fact that in spite of the permission error which shows up, some of the transactions end up being completed, which means something is not right somewhere as you can see from the image below.

Permission%20Error

Be sure to upvote the issue [Tutorial] How to upvote Github issues for non developers

I have the same problem,

Our member cannot login to our system :
user do not have document access

Anyone has the solution?

Cheers

Cat

1 Like

Please upvote the issue on GitHub so it can receive attention.

https://github.com/frappe/frappe/issues/7144

i’m also getting the same error while updating the Employee details [doctype Employee]
with role : HR user

But the data updating is happening with error .!
image|690x377

did you get any solution?

Getting same error after updating to latest update of erpnext v11, was working fine before the update

In our case, on ly one user was affected. Others were not. The curious thing is that there were no differences in their roles, i.e. My user has same privileges over EPRNext than the affected user.

I had the problem with Employees. I managed to solve it, but (BRACE FOR IT) I do not remember how I did it.
Now this user is having the same issue with tasks assigned by other users. He can see tasks fine, but tasks with assignment from others he cannot see.

** EDIT**
Probable solution: Make sure to be logged in as Administrator whenever you change any permissions.
Even if the Role Permissions are set per doctype, just check to make sure they are.
Go to the user. Remove the roles. Save. Add the roles back again. Save.
This should restore visibility and unrestrict the doctypes.

1 Like

Have you solved this issue?

The error was while viewing the reports but I don’t remember what I did to resolve it :roll_eyes:

ok the learning for next time - be sure to note whatever you learn here, then you can search back to remind yourself :wink:

1 Like

The permission issues were fixed via:

and

See

1 Like

Now that I rechecked still have not resolved this, it was showing on “employee balance leaves” report as I did not have much time I left it as it is that only managers can view that report. For other employees it still shows this error

I am using the master branch as the development branch is not stable, but most of commits are still not merged in master branch. Which branch should I use?