mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-25 03:43:33 +01:00
Merge branch 'master' into translate
This commit is contained in:
commit
0a34644369
@ -45,9 +45,13 @@ class SystemController extends Controller
|
||||
$permissions = [];
|
||||
foreach (config('installer.permissions') as $perm_path => $perm_value) {
|
||||
$path = base_path($perm_path);
|
||||
$value = '';
|
||||
if (file_exists($path)) {
|
||||
$value = substr(sprintf('%o', fileperms($path)), -4);
|
||||
}
|
||||
$permissions[$perm_path] = [
|
||||
'status' => \Helper::isFolderWritable($path),
|
||||
'value' => substr(sprintf('%o', fileperms($path)), -4),
|
||||
'value' => $value,
|
||||
];
|
||||
}
|
||||
// Check if public symlink exists, if not, try to create.
|
||||
|
@ -59,6 +59,7 @@ return [
|
||||
'bootstrap/cache/' => '775',
|
||||
'public/css/builds/' => '775',
|
||||
'public/js/builds/' => '775',
|
||||
'public/modules/' => '775',
|
||||
],
|
||||
|
||||
/*
|
||||
|
@ -97,7 +97,7 @@
|
||||
@if ($perm['status'])
|
||||
<strong class="text-success">OK</strong>
|
||||
@else
|
||||
<strong class="text-danger">{{ __('Not writable') }} ({{ $perm['value'] }})</strong>
|
||||
<strong class="text-danger">{{ __('Not writable') }} @if ($perm['value'])({{ $perm['value'] }})@endif</strong>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user