|
|
|
@ -1015,7 +1015,7 @@ function modify_filter($user_id, $row, $data) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// edit |
|
|
|
|
if (api_get_setting('allow_user_course_subscription_by_course_admin') === 'true' or api_is_platform_admin()) { |
|
|
|
|
if (api_get_setting('allow_user_course_subscription_by_course_admin') === 'true' || api_is_platform_admin()) { |
|
|
|
|
// unregister |
|
|
|
|
if ($user_id != $current_user_id || api_is_platform_admin()) { |
|
|
|
|
$result .= '<a class="btn btn-small btn-danger" href="'.api_get_self().'?'.api_get_cidreq().'&type='.$type.'&unregister=yes&user_id='.$user_id.'" title="'.get_lang('Unreg').' " onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)).'\')) return false;">'. |
|
|
|
|