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