Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've created my own Permission module in Drupal 8 i have a problem with the body field.
It's disabled and grayed with this message : This field has been disabled because you do not have sufficient permissions to edit it.
How can i activate ckeditor and this field for all users since it's already protected in my Permssion module ?
Comments
Comment #2
mgiffordI don't think this is an accessibility issue.
Was the form just marked
readonly
?Comment #3
Wim LeersThis is not remotely related to the CKEditor module.
If you'd have searched for that string, you'd have found this:
If you then search for that function name, you'd have found it's being called by this code:
In other words: the whole problem is that your user doesn't have sufficient permissions. And it sounds like that's related to your custom code.
With this information, you should be able to figure out what's wrong in your code :)
Comment #4
mxr576If you search for this message then you can see this is not related to custom permissions. This is a built in feature/bug of the Drupal since 7, caused by the current user does not have access to a filter format (ex.: full html) which has been used by an another user, who saved a certain node/entity's long text field's value before.
Comment #5
Wim LeersThat's what #3 already explained. The reason I mentioned is because the OP says which sounds questionable.
In any case, #4 just explains what I said more clearly, but that means this issue is still "fixed" :)
Comment #7
muhammad.tanweer CreditAttribution: muhammad.tanweer as a volunteer commentedYeah this is a permission issue. The user/role in question should have permission to use the Text Format (input format) which is used ont hat text area field.