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
Relation field shows "No permission to view this field" for super-admin #7232
Comments
Hello! Can you please share your data structure, models and components, this will help us to reproduce the issue. |
Component:
the broken part is:
|
How did you create this relation? |
Hi! Thanks for the issue. There are no migration scripts involved in this. I tried but I couldn't reproduce it. Do you have the problem when you follow the steps you wrote? |
Seems related to #7325? |
Hi everyone, This is not properly an issue. We had to make a choice regarding the default behavior when adding a field in a content type: would it be automatically included in the default roles' permissions set or not....? We decided it would not and that the permissions would have to be updated each time the content model to manage would evolve (the opposite choice would have come with the same amount of drawbacks). Therefore, each time you are updating a content type model with a field, make sure to grant access to it updating the roles' permissions. I hope that helps. |
Ok, that makes sense. Thank you for the clarification ! 🙌 |
We will be marking this issue as closed, should you have any further questions or concerns please don't hesitate to reply and we can look at reopening. |
Hi, I also ran into this issue despite having permissions set correctly (I am following the tutorial here https://strapi.io/blog/build-a-static-blog-with-gatsby-and-strapi ). In my case it resolved itself when I added a second category and clicked save, triggering a server restart. Just posting in case it helps anyone else in my situation, with correct permissions but no ability to edit relation field. My best guess is that something went wrong during server restart after saving my first category. |
Why would we have to do this if were an admin? Considering I had this similar this as a super admin makes me think there’s something else going on. |
Also have this issue as a superadmin. Add a new field to the category content type and have no access to edit that field. Steps:
|
Hi, the superadmin should indeed have access to everything yes. I followed the steps of @lodisy but everything works find on my side. Can you please give more details ?
|
Node.js version: 12.14.1 I do not have issue locally, this happes on my VPS (with separated admin panel) whether in dev or production mode. |
I also attached information in the issue I linked above. Also only happens in production mode. |
Tried again. One more thing to mention, the panel needs to get restarted after editing, but it often keeps loading, shows taking too long or an error happens, while strapi has already restarted normally and no errors according to the ssh panel. |
Can you please show me the entry in your database that correspond to the super-admin user ?
Alos, do you have any warning in the logs when you start the server? |
|
Just a side point I see you are using the community |
No warnings or errors according to the terminal. |
Ah
@petersg83 I'm wondering if that's the problem, one of the other roles overriding the super admin one? |
Super! It is resolved after removed the editor and author roles(need to logout and re-login). But it's a bit confusing to me, when I submit a post, I need to asign the author, but the super admin account (or of other two roles) does not show in the user(collection) list, so I need to create one with the same email etc. So how about the role of this newly created account? The super admin, author and editor are excluded from the user list right? Bit confused as I can also create a new role called Author in the Roles & Permissions and asign it to the newly created account, as mentioned above. |
I was able to reproduce it! Thanks a lot :) |
I think in this case @petersg83 if an admin user is apart of the |
At one point, restarting the server and re-logging in allowed super-admin to access the new field. But this is no longer working for me. the issue remains, "No permissions to see this field" |
Signed-off-by: soupette <cyril.lpz@gmail.com> Signed-off-by: Garrett Fritz <garrettfritz@garretts-mbp.home>
Also had the issue as superadmin, logging out and then re-login worked for me |
Describe the bug
After upgrading to strapi 3.1 when trying to create a new entry with a relation field inside a repetable component. The field shown with a "No permission to view this field". Even tho i'm a super admin. Checked the settings page and the super admin seem to have access to the relation table.
Steps to reproduce the behavior
Expected behavior
I was expectin to be able to modify the relation field as usual.
Screenshots
System
The text was updated successfully, but these errors were encountered: