Skip to content
Snippets Groups Projects
Commit 715f13cf authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

better handling of courses with lock-rules

parent 209bd336
No related branches found
No related tags found
No related merge requests found
<? if (Seminar_Perm::get()->have_studip_perm('dozent', $course_id)
<? if ($GLOBALS['perm']->have_studip_perm('dozent', $course_id)
&& !LockRules::check($course_id, 'seminar_copy')) : ?>
<input type="checkbox" name="c[]" value="<?= htmlReady($course_id) ?>">
<? else : ?>
<input type="checkbox" disabled title="<?= !LockRules::check($course_id, 'seminar_copy') ? _('Veranstaltung darf nicht kopiert werden.') : _('Sie brauchen mindestens Dozentenrechte in der Veranstaltung.') ?>">
<input type="checkbox"
disabled
title="<?= LockRules::check($course_id, 'seminar_copy') ? _('Veranstaltung darf nicht kopiert werden.') : _('Sie brauchen mindestens Dozentenrechte in der Veranstaltung.') ?>">
<? endif ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment