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']; 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() { public function getEula() {
return $this->license->getEula(); return $this->license->getEula();
} }

View file

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

View file

@ -7,7 +7,7 @@
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td> <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> </td>
</tr> </tr>
</table> </table>