When navigating to 'Taxonomy Role Access', to review the list of user roles and term references, 'anonymous user' is listed. 'authenticated user' is not.

The README states:
'TAXONOMY ROLE ACCESS
--------------------

Taxonomy Role Access allows to control access to taxonomy terms.
Works for each user role (except administrator) and is configurable
for each taxonomy term separately.
If taxonomy term is set to be available for the user role "authenticated user",
it will not be possible to deny access to it for any other user role that is
derived from the "authenticated user" role. But if taxonomy term is denied
for "authenticated user" role, it can be allowed for the derived user roles
to have access to it.'

Perhaps I overlooked something - it happens more than I would like :-)

The README either needs to state "Works for each user role (except administrator and authenticated user) and is configurable
for each taxonomy term separately" OR authenticated user needs to be added to the list of roles for TRA.

There are many instances in which I would prefer to keep something from anonymous users, but allow authenticated users to access it.

Regards.

Comments

GaëlG’s picture

Priority: Minor » Normal
Status: Active » Needs work

Yes, this behavior is very strange. I never saw any other module making this assumption found in code:

"User role "authenticated user" is not used when other custom created user roles exist."

As it prevented simple authenticated users from accessing nodes, I had to comment out the 3 lines where it's written unset($roles[2]);. Now it seems to work.

martins.bertins’s picture

Status: Needs work » Needs review

Now I can't remember what was the reason I made such assumptions for leaving out that user role. Made it show all available user roles.
Just commited the changes to the repository, so check out the latest dev build.

martins.bertins’s picture

Issue summary: View changes
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.