Skip to content

Commit e6af9ec

Browse files
committed
Fixed custom backgrounds for non admins
1 parent 76fadcd commit e6af9ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/views/studio/theme.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ function updateicon() {
276276
}catch(Exception $ex){}
277277
?>
278278

279+
@endif
279280
@endif
280281

281282
@if(env('ALLOW_CUSTOM_BACKGROUNDS') == true)
@@ -303,6 +304,7 @@ function updateicon() {
303304
</form>
304305
@endif
305306

307+
@if(auth()->user()->role == 'admin')
306308
<br><br><br>
307309
<form action="{{ route('editTheme') }}" enctype="multipart/form-data" method="post">
308310
@csrf

0 commit comments

Comments
 (0)