Skip to content

Commit

Permalink
fixed some bugs
Browse files Browse the repository at this point in the history
added version
  • Loading branch information
A1Gard committed Sep 4, 2024
1 parent b706b89 commit 79cce6c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Admin/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ class UserController extends XController
public function save($user, $request)
{

if ($user->role == 'DEVELOPER' && !auth()->user()->hasRole('DEVELOPER')) {
if ($user->role == 'DEVELOPER' && !auth()->user()->hasRole('developer')) {
abort(403);
}
if (!auth()->user()->hasRole('DEVELOPER') && $request->role == 'DEVELOPER') {
if (!auth()->user()->hasRole('developer') && $request->role == 'DEVELOPER') {
abort(403);
}

Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

'name' => env('APP_NAME', 'Laravel'),
'version' => env('APP_VERSION', '2.0.0-beta'),
'version' => env('APP_VERSION', '2.0.0-beta-2'),

/*
|--------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions resources/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ import "../views/segments/attachments_page/DenaAttachList/DenaAttachList.js";
import "../views/segments/attachment/AttachmentWithPreview/AttachmentWithPreview.js";
import "../views/segments/contact/MeloContact/MeloContact.js";
import "../views/segments/invoice/LianaInvoice/LianaInvoice.js";
import "../views/segments/floats/FollowUsSocial/FollowUsSocial.js";
1 change: 1 addition & 0 deletions resources/sass/client.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ $xshop-shadow:2px 2px 4px #777777;
@import "../views/segments/attachment/AttachmentWithPreview/AttachmentWithPreview";
@import "../views/segments/contact/MeloContact/MeloContact";
@import "../views/segments/invoice/LianaInvoice/LianaInvoice";
@import "../views/segments/floats/FollowUsSocial/FollowUsSocial";
4 changes: 2 additions & 2 deletions resources/views/components/panel-side-navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@
</li>

@endif
@if( auth()->user()->hasRole('DEVELOPER') )
@if( auth()->user()->hasRole('developer') )
<li>
<a href="{{route('admin.gfx.index')}}">
<i class="ri-color-filter-line"></i>
{{__("Graphic")}}
</a>
</li>
@endif
@if( auth()->user()->hasRole('DEVELOPER') )
@if( auth()->user()->hasRole('developer'))
<li>
<a href="{{route('admin.area.index')}}">
<i class="ri-paint-brush-line"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
bottom: 10rem;
transform: rotateZ(90deg);
width: 300px;
text-shadow: 1px 1px 4px white;
span{
display: inline-block;
font-size: 27px;
Expand Down

0 comments on commit 79cce6c

Please sign in to comment.