You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I wish I could put access to a group on the user_register page.
I found a solution :
{% if ((grav.user.authorize('site.csm')) and (uri.path == "/user_register")) or (uri.path == "/user_profile") %} {% extends "forms/default/form.html.twig" %} {% else %} {% do grav.redirect('/user_register') %} {% endif %}
The problem is that I am forced to redirect to a page that has real access. So after my connection I must write again the links. My goal is to remove this redirection or to redirect me directly to the right page after the connection.
Have a good day
The text was updated successfully, but these errors were encountered:
RomainLWiz
changed the title
Access to user_register page
Set access to user_register page
Nov 28, 2019
Hello, I wish I could put access to a group on the user_register page.
I found a solution :
{% if ((grav.user.authorize('site.csm')) and (uri.path == "/user_register")) or (uri.path == "/user_profile") %}
{% extends "forms/default/form.html.twig" %}
{% else %}
{% do grav.redirect('/user_register') %}
{% endif %}
The problem is that I am forced to redirect to a page that has real access. So after my connection I must write again the links. My goal is to remove this redirection or to redirect me directly to the right page after the connection.
Have a good day
The text was updated successfully, but these errors were encountered: