smallwheels
Well-known member
I do post this in the general support forum b/c it is a permission issue, so it may or may not be related to resource addon.
What is the issue?
A new user could not access a certain resource within a certain category in resource manager. He is - as are almost all others - in the group "registered" with no secondary group. I checked the permissions of the resource category in question and it turned out that I had locked out this user group actively from that category. Adjusted the permissions for the group on this category to "inherit", works, job done.
But here's where my confusion starts: A couple of other users who had the same set of permissions as the user in question and were also members of the group "registered" (and only of that group) were able to see the resource in question and also to post replies to the related discussion thread while he had problems. Should not be the case, I've no explanation for this. But it gets worse:
The general permissions for resources for the group "registered" is set to "yes":
But when I pick a random user of the group "registered" and check his general permission for resources they are set to "no":
I've checked this for a sample of about 10 different users that have been registered between today and 1,5 years ago when I started the forum - all the same.
Question 1: How come that the general permission of the primary group a user is in are not applied to that user if he is not part of a secondary group that says differently?
It gets even more confusing: I've been using the resource manager almost since the start of the forum and had no complaints that people could not access it. In opposite: They could and can, they view, add and download resources. The fix for the initial problem for the one user was to apply "inherit" for the resource category in question (which was the case for most other resource categories already). Here's an example resource category:
Given that the general permissions for the group "registered" is set to "yes" it seems logical that they have access. Given that every individual user has - for unknown reasons - the individual permissions for resources set to "no" they should not have access in my eyes. I am glad that they have - but it seems not logical to me.
Question 2: How can it be that inherit seems to do the opposite of what it is supposed to do on a user level?
If I analyse permissions for a certain user for the resource category they are set to "yes" - as it should be. But why?
The details only refer to the group "registered", the only one the user is in:
in comparison: if I do the same analysis for my own user all the user groups I am in are listed:
But then: Why does he (and all the others) have a "no" when analyzing the general resource permissions for the same user? Where does it come from?
Question 3: How can I find out what causes the individual setting of a certain permission for a certain user? I did certainly not manually edit 100s of users, so there must be a reason. But how do I find it?
Question 4: Can I batch update the permissions for all users of a certain group (so those that are affected here) w/o using the permissions of the group itself? And if to how?
Note: I am aware how permissions in XenForo work: Yes is Yes and overwrites a No that is set for the same permission via another (secondary) user group. No is No if there is no overwrite by a yes. Never ist a hard no and cannot be overwritten but overwrites an existing yes set by another (secondary) group a user may be in.
Just that in my case for most of the users there is no second user group involved at all.
For the record: I am running XF 2.2.15 with RM 2.2.5 and MG 2.2.5 (so the actual stable versions) along with a bunch of other plugins. There have no troubles been reported but I am a little bit in fear that I might have issues like that in other areas of the forum as well w/o knowing it and it is a bad feeling not be able to trust the output of the admin backend. I've absolutely no clue when this behaviour of the permission system did start or if it is limited to RM or not.
I barely dare to think of this but could it possibly be that it is a bug in the view so that in the user view of permissions for the area of resources something is wonky and a yes is shown as a no in the backend in that view or something like that?
What is the issue?
A new user could not access a certain resource within a certain category in resource manager. He is - as are almost all others - in the group "registered" with no secondary group. I checked the permissions of the resource category in question and it turned out that I had locked out this user group actively from that category. Adjusted the permissions for the group on this category to "inherit", works, job done.
But here's where my confusion starts: A couple of other users who had the same set of permissions as the user in question and were also members of the group "registered" (and only of that group) were able to see the resource in question and also to post replies to the related discussion thread while he had problems. Should not be the case, I've no explanation for this. But it gets worse:
The general permissions for resources for the group "registered" is set to "yes":
But when I pick a random user of the group "registered" and check his general permission for resources they are set to "no":
I've checked this for a sample of about 10 different users that have been registered between today and 1,5 years ago when I started the forum - all the same.
Question 1: How come that the general permission of the primary group a user is in are not applied to that user if he is not part of a secondary group that says differently?
It gets even more confusing: I've been using the resource manager almost since the start of the forum and had no complaints that people could not access it. In opposite: They could and can, they view, add and download resources. The fix for the initial problem for the one user was to apply "inherit" for the resource category in question (which was the case for most other resource categories already). Here's an example resource category:
Given that the general permissions for the group "registered" is set to "yes" it seems logical that they have access. Given that every individual user has - for unknown reasons - the individual permissions for resources set to "no" they should not have access in my eyes. I am glad that they have - but it seems not logical to me.
Question 2: How can it be that inherit seems to do the opposite of what it is supposed to do on a user level?
If I analyse permissions for a certain user for the resource category they are set to "yes" - as it should be. But why?
The details only refer to the group "registered", the only one the user is in:
in comparison: if I do the same analysis for my own user all the user groups I am in are listed:
But then: Why does he (and all the others) have a "no" when analyzing the general resource permissions for the same user? Where does it come from?
Question 3: How can I find out what causes the individual setting of a certain permission for a certain user? I did certainly not manually edit 100s of users, so there must be a reason. But how do I find it?
Question 4: Can I batch update the permissions for all users of a certain group (so those that are affected here) w/o using the permissions of the group itself? And if to how?
Note: I am aware how permissions in XenForo work: Yes is Yes and overwrites a No that is set for the same permission via another (secondary) user group. No is No if there is no overwrite by a yes. Never ist a hard no and cannot be overwritten but overwrites an existing yes set by another (secondary) group a user may be in.
Just that in my case for most of the users there is no second user group involved at all.
For the record: I am running XF 2.2.15 with RM 2.2.5 and MG 2.2.5 (so the actual stable versions) along with a bunch of other plugins. There have no troubles been reported but I am a little bit in fear that I might have issues like that in other areas of the forum as well w/o knowing it and it is a bad feeling not be able to trust the output of the admin backend. I've absolutely no clue when this behaviour of the permission system did start or if it is limited to RM or not.
I barely dare to think of this but could it possibly be that it is a bug in the view so that in the user view of permissions for the area of resources something is wonky and a yes is shown as a no in the backend in that view or something like that?
Last edited: