Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
text.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2013 at 11:02 UTC
Updated:
14 Aug 2013 at 10:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
wodenx commentedComment #3
wodenx commentedHm - well, the exceptions are due to entities with no values set for certain fields, and that's easily fixed by the attached patch.
The failures in FilterFormatAccessTestCase are due to the fact that Field module just doesn't display fields on the edit form which the current user doesn't have access to edit.
I actually don't think that behavior is correct. I think Field should display the fields (if the user has the permission to view them), but disable the input elements if the user doesn't have sufficient privileges to edit them.
Either way, the filter tests would have to be rewritten.
Thoughts?
Comment #5
wodenx commentedSomething like this. The compromise here is that we have to allow users with 'administer filters' permission access to a field with a disallowed input format, so that the text-format widget can do its thing.
An alternative would be to keep field module's behavior the same, but then have the format widget restore the hidden field.
Comment #6
wodenx commentedComment #8
wodenx commented'edit' permission doesn't imply 'view' permission.
Comment #9
wodenx commentedComment #11
wodenx commented