If I view a URL like admin/structure/features/<feature_name>/diff and there are no overrides, I get an access denied error. Instead, I should get a message stating that there are no overrides.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | access_denied_when_no_diff_2623926_3.patch | 659 bytes | dpovshed |
Comments
Comment #2
liam morlandComment #3
dpovshed commentedI also spotted this issue in one of my projects, so here is the patch.
The patch does the following:
- access is allowed if there are no changes in feature;
- removed extra call to the user_access() function - it was called twice with the same arguments.
Comment #4
liam morlandThanks. Working for me.
Comment #5
donquixote commentedJust saying I support this.
Maybe it could be useful to display the status in the title of the "Diff" tab. Using the title callback.
This way, people avoid to open this tab if there is nothing to see.
But I can live without this. Main thing is that access is not denied.
Comment #6
liam morlandThe diff tab doesn't show up if there are no differences. The main thing for this is if I have the diff tab open, make changes or update the code, and then reload the diff tab.
Comment #8
mpotter commentedCommitted to 2eaf9ec.