mirror of
https://github.com/grokability/snipe-it.git
synced 2026-03-12 17:52:00 +08:00
only user can change report sharing
This commit is contained in:
@@ -79,12 +79,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-7 col-md-offset-7">
|
||||
<label class="form-control">
|
||||
<input type="checkbox" name="shared_report_template" value="1" @checked($template->checkmarkValue('shared_report_template')) />
|
||||
{{ trans('admin/reports/general.share_template') }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@if($template->created_by == User::class('users.id'))
|
||||
<div class="col-md-7 col-md-offset-7">
|
||||
<label class="form-control">
|
||||
<input type="checkbox" name="shared_report_template" value="1" @checked($template->checkmarkValue('shared_report_template')) />
|
||||
{{ trans('admin/reports/general.share_template') }}
|
||||
</label>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
</div><!-- /.box-header -->
|
||||
|
||||
Reference in New Issue
Block a user