fixed some bugs

added version
master v2.0.0-beta2
A1Gard 2 weeks ago
parent b706b8976a
commit 79cce6ca4e

@ -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);
}

@ -16,7 +16,7 @@ return [
*/
'name' => env('APP_NAME', 'Laravel'),
'version' => env('APP_VERSION', '2.0.0-beta'),
'version' => env('APP_VERSION', '2.0.0-beta-2'),
/*
|--------------------------------------------------------------------------

@ -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";

@ -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";

@ -175,7 +175,7 @@
</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>
@ -183,7 +183,7 @@
</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>

@ -5,7 +5,6 @@
bottom: 10rem;
transform: rotateZ(90deg);
width: 300px;
text-shadow: 1px 1px 4px white;
span{
display: inline-block;
font-size: 27px;

Loading…
Cancel
Save