Only check update for super admin

This commit is contained in:
Pig Fang 2019-07-02 09:08:31 +08:00
parent f064b9271c
commit 83247087cb

View File

@ -84,7 +84,9 @@
<!-- App Scripts -->
@include('common.dependencies.script')
<script defer src="{{ webpack_assets('check-updates.js') }}"></script>
@if ($user->permission >= \App\Models\User::SUPER_ADMIN)
<script defer src="{{ webpack_assets('check-updates.js') }}"></script>
@endif
@yield('script')
</body>
</html>