mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Merge branch 'develop' of github.com:snipe/snipe-it into develop
This commit is contained in:
commit
85232c47da
|
@ -626,12 +626,12 @@ class AssetsController extends Controller
|
||||||
if ($asset->save()) {
|
if ($asset->save()) {
|
||||||
|
|
||||||
if ($request->input('checkin_at') == Carbon::now()->format('Y-m-d')) {
|
if ($request->input('checkin_at') == Carbon::now()->format('Y-m-d')) {
|
||||||
$checkout_at = Carbon::now();
|
$checkin_at = Carbon::now();
|
||||||
} else {
|
} else {
|
||||||
$checkout_at = $request->input('checkin_at').' 00:00:00';
|
$checkin_at = $request->input('checkin_at').' 00:00:00';
|
||||||
}
|
}
|
||||||
//$checkout_at = e(Input::get('checkin_at'));
|
//$checkin_at = e(Input::get('checkin_at'));
|
||||||
$logaction = $asset->createLogRecord('checkin', $asset, $admin, $user, null, e(Input::get('note')), $checkout_at);
|
$logaction = $asset->createLogRecord('checkin', $asset, $admin, $user, null, e(Input::get('note')), $checkin_at);
|
||||||
|
|
||||||
|
|
||||||
$settings = Setting::getSettings();
|
$settings = Setting::getSettings();
|
||||||
|
|
|
@ -55,7 +55,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
||||||
|
|
||||||
$user_permissions = json_decode($this->permissions, true);
|
$user_permissions = json_decode($this->permissions, true);
|
||||||
|
|
||||||
//If the user is explicitly granted, return false
|
//If the user is explicitly granted, return true
|
||||||
if (($user_permissions!='') && ((array_key_exists($section, $user_permissions)) && ($user_permissions[$section]=='1'))) {
|
if (($user_permissions!='') && ((array_key_exists($section, $user_permissions)) && ($user_permissions[$section]=='1'))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -205,7 +205,7 @@ class AuthServiceProvider extends ServiceProvider
|
||||||
# Components
|
# Components
|
||||||
# -----------------------------------------
|
# -----------------------------------------
|
||||||
$gate->define('components.view', function ($user) {
|
$gate->define('components.view', function ($user) {
|
||||||
if (($user->hasAccess('components.create')) || ($user->hasAccess('admin'))) {
|
if (($user->hasAccess('components.view')) || ($user->hasAccess('admin'))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -148,14 +148,14 @@
|
||||||
@if (!is_null($license->license_name))
|
@if (!is_null($license->license_name))
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ trans('admin/licenses/form.to_name') }}</td>
|
<td>{{ trans('admin/licenses/form.to_name') }}</td>
|
||||||
<td>{{ nl2br(e($license->license_name)) }}</td>
|
<td>{{ $license->license_name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (!is_null($license->license_email))
|
@if (!is_null($license->license_email))
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ trans('admin/licenses/form.to_email') }}</td>
|
<td>{{ trans('admin/licenses/form.to_email') }}</td>
|
||||||
<td>{{ nl2br(e($license->license_email)) }}</td>
|
<td>{{ $license->license_email }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue