-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin UI: fixed no-access indicators not showing up in list table #2939
Admin UI: fixed no-access indicators not showing up in list table #2939
Conversation
🦋 Changeset is good to goLatest commit: 4cfedbb We got this. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There are two ways to restrict access to a field:
In the first form (for In the second form (for If it's to disappear completely, this change seems reasonable. Otherwise, we might need to keep those errors around to catch the case where access control is determined dynamically based on the function passed to |
That's field access, though. The code in question here was part of the list query and applies to the list table. Fields to which you do not have access are indeed already not editable as you say (though they're not actually grayed out/disabled, you just can't - there's #2258 for that) |
@jesstelford my thoughts on improving over the functional access control. there is two way to use this functional access thing.
|
32a2938
to
4cfedbb
Compare
The list query doesn't include anerror
argument at all. It looks something like this:Plus, I cannot actually find any other place where errors are part of the query data result instead of inquery.errors
. This looks like it's meant to gray out specific items from the list table you don't have access to, but in my testing you simply just don't see those items at all.