Merge branch 'develop' of https://github.com/snipe/snipe-it into develop

This commit is contained in:
snipe 2018-10-11 15:29:48 -07:00
commit b8f8d49927
3 changed files with 14 additions and 2 deletions

View file

@ -29,6 +29,18 @@ class LicenseSeat extends SnipeModel implements ICompanyableChild
return ['asset', 'license'];
}
/**
* Determine whether the user should be required to accept the license
*
* @author A. Gianotto <snipe@snipe.net>
* @since [v4.0]
* @return boolean
*/
public function requireAcceptance()
{
return $this->license->category->require_acceptance;
}
public function getEula() {
return $this->license->getEula();
}

View file

@ -16,7 +16,7 @@
@if (isset($item->category))
| **{{ trans('general.category') }}** | {{ $item->category->name }} |
@endif
@if ($target->can('update', $item))
@if ($target->can('view', $item))
| **Key** | {{ $item->serial }} |
@endif
@if ($note)

View file

@ -7,7 +7,7 @@
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<a href="{{ $url }}" class="button button-{{ $color or 'blue' }}" target="_blank">{{ $slot }}</a>
<a href="{{ $url }}" class="button button-{{ $color ?? 'blue' }}" target="_blank">{{ $slot }}</a>
</td>
</tr>
</table>