Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
Backend Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SpinShare
Backend Server
Commits
93bba197
Commit
93bba197
authored
Apr 16, 2020
by
Andreas Heimann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EMERGENCY FIX
parent
6899bbd3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
29 deletions
+18
-29
config/packages/config.yaml
config/packages/config.yaml
+1
-1
config/packages/security.yaml
config/packages/security.yaml
+1
-14
templates/user/detail.html.twig
templates/user/detail.html.twig
+16
-14
No files found.
config/packages/config.yaml
View file @
93bba197
...
@@ -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
:
...
...
config/packages/security.yaml
View file @
93bba197
...
@@ -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
templates/user/detail.html.twig
View file @
93bba197
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment