Fix admin-dir_permissions redirection when cannot write warning
is shown.
Merge pull request #8006 from wakeup/master

Fix admin-dir_permissions redirection when cannot write warning is shown.