You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've spent several hours with this, and it's possible I'm misunderstanding something.
I run YOURLS as a container under Kubernetes, with configuration handled via env vars or Secrets stored as JSON and then parsed with json_decode in config.php. That all works fine, but it's the reason I'm including JSON here.
and set $amp_default_role to Editor then the "weasel" user can see entries made by other people as an Editor.
If I remove support for $amp_default_role entirely, then "weasel" is correctly assigned the Contributor or Editor role according to roles.json.
It looks a lot like $amp_default_role is not being limited to non-configured users but is instead acting as a floor, beneath which all users receive elevated privileges.
The text was updated successfully, but these errors were encountered:
I've spent several hours with this, and it's possible I'm misunderstanding something.
I run YOURLS as a container under Kubernetes, with configuration handled via env vars or Secrets stored as JSON and then parsed with
json_decode
inconfig.php
. That all works fine, but it's the reason I'm including JSON here.I have this:
I also have
$amp_default_role
set toContributor
.The "oskapt" user is correctly assigned as an administrator. The "weasel" user is assigned as an Editor. All is good.
If I switch it to this:
and set
$amp_default_role
toEditor
then the "weasel" user can see entries made by other people as an Editor.If I remove support for
$amp_default_role
entirely, then "weasel" is correctly assigned the Contributor or Editor role according toroles.json
.It looks a lot like
$amp_default_role
is not being limited to non-configured users but is instead acting as a floor, beneath which all users receive elevated privileges.The text was updated successfully, but these errors were encountered: