Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added redirect functionality for non authorized users #183

Merged
merged 3 commits into from
Jun 6, 2017
Merged

Added redirect functionality for non authorized users #183

merged 3 commits into from
Jun 6, 2017

Conversation

SalimSalici
Copy link
Contributor

I've added the possibility to redirect a user to another page if the initial authorization fails (so it won't show the loader indefinitely).

If fm_authenticate() returns a string, the filemanager page will be redirected to the returned URL.

To do this, I had to change something in the php connector too, in the repository RichFilemanager-PHP (I'm making a pull request for that too).

I've also made some updates to the Italian translations.

Lastly, if a user was not authorized, the error message showed the text "AUTHORIZATION REQUIRED" instead of "You are not authorized to use filemanager.". To solve this I moved the language file request before the initial request.

If performInitialRequest() is called before localize(), the possible error
message displayed for non authenticated users "AUTHORIZATION REQUIRED" is
not parsed.
@psolom psolom changed the base branch from master to dev June 6, 2017 06:43
@psolom psolom merged commit a762398 into psolom:dev Jun 6, 2017
@psolom psolom added this to the 2.5.0 milestone Jun 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants