Commit 93bba197 authored by Andreas Heimann's avatar Andreas Heimann

EMERGENCY FIX

parent 6899bbd3
...@@ -3,7 +3,7 @@ fos_user: ...@@ -3,7 +3,7 @@ fos_user:
firewall_name: main firewall_name: main
user_class: App\Entity\User user_class: App\Entity\User
from_email: from_email:
address: "system@spinsha.re" address: "noreply@spinsha.re"
sender_name: "SpinSha.re" sender_name: "SpinSha.re"
registration: registration:
confirmation: confirmation:
......
...@@ -22,22 +22,9 @@ security: ...@@ -22,22 +22,9 @@ security:
anonymous: true anonymous: true
access_control: access_control:
- { path: ^/index$, role: ROLE_USER }
- { path: ^/search, role: ROLE_USER }
- { path: ^/client$, role: ROLE_USER }
- { path: ^/legal$, role: ROLE_USER }
- { path: ^/song$, role: ROLE_USER }
- { path: ^/user$, role: ROLE_USER }
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/upload$, role: ROLE_USER } - { path: ^/upload$, role: ROLE_USER }
- { path: ^/settings$, role: ROLE_USER } - { path: ^/settings$, role: ROLE_USER }
- { path: ^/moderation/, role: ROLE_MODERATOR } - { path: ^/moderation$, role: ROLE_MODERATOR }
# ---- ACCESS CONTROL FOR LAUNCH ---- \ No newline at end of file
# - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
# - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
# - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
# - { path: ^/upload$, role: ROLE_USER }
# - { path: ^/settings$, role: ROLE_USER }
# - { path: ^/moderation$, role: ROLE_MODERATOR }
\ No newline at end of file
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<a href="spinshare-user://{{ user.id }}" class="button">Open in Client</a> <a href="spinshare-user://{{ user.id }}" class="button">Open in Client</a>
<a href="{{ path('report.user', {userId: user.id}) }}" class="button">Report</a> <a href="{{ path('report.user', {userId: user.id}) }}" class="button">Report</a>
</div> </div>
{% if is_granted("ROLE_USER") %}
{% if is_granted('ROLE_MODERATOR') and user.id != app.user.id %} {% if is_granted('ROLE_MODERATOR') and user.id != app.user.id %}
<div class="user-detail-actions-moderation"> <div class="user-detail-actions-moderation">
{% if user.enabled %} {% if user.enabled %}
...@@ -47,6 +48,7 @@ ...@@ -47,6 +48,7 @@
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
{% endif %}
<div class="song-row song-row-user"> <div class="song-row song-row-user">
<div class="song-header"> <div class="song-header">
<div class="row-title row-title-noactions">Uploaded Songs</div> <div class="row-title row-title-noactions">Uploaded Songs</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment