Closed (fixed)
Project:
Workbench Access
Version:
8.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2021 at 13:11 UTC
Updated:
25 Jan 2026 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
prudloff commentedComment #4
agentrickardGiven that administrators (including user 1) always have all permissions, how are you triggering this error?
And why do the tests fail?
Comment #5
prudloff commentedWe don't have an administrator role. It is not strictly necessary to have one because UID 1 (even without any role) always passes most permission checks (a least until #540008: Add a container parameter that can remove the special behavior of UID#1 is merged).
So in our case
user_role_names(FALSE, 'use workbench access')returns an empty array.As for the test failure, it does not seem to be related to my change:
Comment #6
agentrickardThanks!
Comment #7
agentrickardI wonder if that's an issue with the testbot and forks, since our normal tests work fine with a patch workflow.
Comment #8
agentrickardOdd. I had reported and fixed that once before. #3155657: Test dependencies no longer loaded?.
Perhaps this issue fork doesn't include that change.
Comment #10
agentrickardCommitted.