mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 12:10:34 +09:00
disabled users, items, tags for non admin users and user and login forms for all users
This commit is contained in:
@@ -106,4 +106,6 @@ return array (
|
||||
'dashboard.reorder' => 'Elemente neu anordnen und anheften',
|
||||
'dashboard.settings' => 'Einstellungen',
|
||||
'role' => 'Authentifizierungsrolle',
|
||||
'unauthorized_for_form' => 'Sie haben keinen Zugriff auf diese Seite.',
|
||||
'diabled_feature' => 'Diese Funktion ist deaktiviert.',
|
||||
);
|
||||
@@ -115,4 +115,6 @@ return array (
|
||||
'dashboard.reorder' => 'Reorder and pin items',
|
||||
'dashboard.settings' => 'Settings',
|
||||
'role' => 'Authentification role',
|
||||
'unauthorized_for_form' => 'You are not authorised to view this form.',
|
||||
'diabled_feature' => 'This feature is disabled.',
|
||||
);
|
||||
@@ -1,6 +1,8 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
|
||||
@section('content')
|
||||
@if(!$app['config']->get('app.auth_roles_enable', false))
|
||||
<?php
|
||||
$user = \App\User::currentUser();
|
||||
?>
|
||||
@@ -21,5 +23,14 @@ $user = \App\User::currentUser();
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@else
|
||||
<section class="module-container">
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.diabled_feature') }}
|
||||
</div>
|
||||
</header>
|
||||
</section>
|
||||
@endif
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<section class="module-container">
|
||||
@if($enable_auth_admin_controles)
|
||||
<header>
|
||||
<div class="section-title">{{ __('app.apps.preview') }}</div>
|
||||
<div class="module-actions">
|
||||
@@ -144,6 +145,13 @@
|
||||
<a href="{{ route('items.index', []) }}" class="button"><i class="fa fa-ban"></i><span>{{ __('app.buttons.cancel') }}</span></a>
|
||||
</div>
|
||||
</footer>
|
||||
@else
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.unauthorized_for_form') }}
|
||||
</div>
|
||||
</header>
|
||||
@endif
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
@section('content')
|
||||
|
||||
<section class="module-container">
|
||||
@if($enable_auth_admin_controles)
|
||||
<header>
|
||||
<div class="section-title">{{ __('app.import') }}</div>
|
||||
<div class="module-actions">
|
||||
@@ -31,6 +32,13 @@
|
||||
<a href="{{ route('settings.index', []) }}" class="button"><i class="fa fa-ban"></i><span>{{ __('app.buttons.cancel') }}</span></a>
|
||||
</div>
|
||||
</footer>
|
||||
@else
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.unauthorized_for_form') }}
|
||||
</div>
|
||||
</header>
|
||||
@endif
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
@section('content')
|
||||
<section class="module-container">
|
||||
@if($enable_auth_admin_controles)
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.apps.app_list') }}
|
||||
@@ -53,6 +54,13 @@
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.unauthorized_for_form') }}
|
||||
</div>
|
||||
</header>
|
||||
@endif
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
@endif
|
||||
|
||||
<a id="dash" class="config" href="{{ route('dash', []) }}"><i class="fas fa-th"></i><div class="tooltip left">{{ __('app.dashboard') }}</div></a>
|
||||
@if($current_user->id === 1)
|
||||
@if($current_user->id === 1 && !config('app.auth_roles_enable'))
|
||||
<a id="users" class="config" href="{{ route('users.index', []) }}"><i class="fas fa-user"></i><div class="tooltip left">{{ __('app.user.user_list') }}</div></a>
|
||||
@endif
|
||||
<a id="items" class="config" href="{{ route('items.index', []) }}"><i class="fas fa-list"></i><div class="tooltip left">{{ __('app.apps.app_list') }}</div></a>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<section class="module-container">
|
||||
@if($enable_auth_admin_controles)
|
||||
<header>
|
||||
<div class="section-title">{{ __($setting->label) }}</div>
|
||||
<div class="module-actions">
|
||||
@@ -26,5 +27,12 @@
|
||||
<a href="{{ route('settings.index', []) }}" class="button"><i class="fa fa-ban"></i><span>{{ __('app.buttons.cancel') }}</span></a>
|
||||
</div>
|
||||
</footer>
|
||||
@else
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.unauthorized_for_form') }}
|
||||
</div>
|
||||
</header>
|
||||
@endif
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
@if($enable_auth_admin_controles)
|
||||
@foreach ($groups as $index => $group)
|
||||
<section class="module-container">
|
||||
<header>
|
||||
@@ -57,5 +58,14 @@
|
||||
</table>
|
||||
</section>
|
||||
@endforeach
|
||||
@else
|
||||
<section class="module-container">
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.unauthorized_for_form') }}
|
||||
</div>
|
||||
</header>
|
||||
</section>
|
||||
@endif
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<section class="module-container">
|
||||
@if($enable_auth_admin_controles)
|
||||
<header>
|
||||
<div class="section-title">{{ __('app.apps.add_tag') }}</div>
|
||||
<div class="module-actions">
|
||||
@@ -82,7 +83,11 @@
|
||||
<a href="{{ route('tags.index', []) }}" class="button"><i class="fa fa-ban"></i><span>{{ __('app.buttons.cancel') }}</span></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@else
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.unauthorized_for_form') }}
|
||||
</div>
|
||||
</header>
|
||||
@endif
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
@section('content')
|
||||
<section class="module-container">
|
||||
@if($enable_auth_admin_controles)
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.apps.tag_list') }}
|
||||
@@ -50,7 +51,12 @@
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.unauthorized_for_form') }}
|
||||
</div>
|
||||
</header>
|
||||
@endif
|
||||
</section>
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<section class="module-container">
|
||||
@if($enable_auth_admin_controles)
|
||||
<header>
|
||||
<div class="section-title">{{ __('app.user.add_user') }}</div>
|
||||
<div class="module-actions">
|
||||
@@ -91,7 +92,11 @@
|
||||
<a href="{{ route('users.index', []) }}" class="button"><i class="fa fa-ban"></i><span>{{ __('app.buttons.cancel') }}</span></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@else
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.unauthorized_for_form') }}
|
||||
</div>
|
||||
</header>
|
||||
@endif
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
@section('content')
|
||||
<section class="module-container">
|
||||
@if($enable_auth_admin_controles)
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.user.user_list') }}
|
||||
@@ -60,7 +61,12 @@
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.unauthorized_for_form') }}
|
||||
</div>
|
||||
</header>
|
||||
@endif
|
||||
</section>
|
||||
|
||||
|
||||
@endsection
|
||||
@@ -1,7 +1,7 @@
|
||||
@extends('layouts.users')
|
||||
|
||||
@section('content')
|
||||
|
||||
@if(!$app['config']->get('app.auth_roles_enable', false))
|
||||
<div class="userlist">
|
||||
@foreach($users as $user)
|
||||
<a class="user" href="{{ route('user.set', [$user->id]) }}">
|
||||
@@ -14,5 +14,14 @@
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<section class="module-container">
|
||||
<header>
|
||||
<div class="section-title">
|
||||
{{ __('app.diabled_feature') }}
|
||||
</div>
|
||||
</header>
|
||||
</section>
|
||||
@endif
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user