File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -305,8 +305,8 @@ function setFocus() {
305305// 2. the course member is here and new threads are allowed
306306// 3. a visitor is here and new threads AND allowed AND anonymous posts are allowed
307307if (api_is_allowed_to_edit (false , true ) ||
308- (1 == $ forumEntity ->getAllowNewThreads () && isset ( $ _user [ ' user_id ' ] )) ||
309- (1 == $ forumEntity ->getAllowNewThreads () && !isset ( $ _user [ ' user_id ' ] ) && 1 == $ forumEntity ->getAllowAnonymous ())
308+ (1 == $ forumEntity ->getAllowNewThreads () && api_get_user_id ( )) ||
309+ (1 == $ forumEntity ->getAllowNewThreads () && !api_get_user_id ( ) && 1 == $ forumEntity ->getAllowAnonymous ())
310310) {
311311 if (1 != $ forumEntity ->getLocked () && 1 != $ forumEntity ->getLocked ()) {
312312 if (!api_is_anonymous () && !api_is_invitee ()) {
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ function confirmation(name) {
306306 // student view automatically. Many teachers are confused
307307 // by that, so maybe a solution can be found to avoid it
308308 $ maker = (empty ($ details ['lp_maker ' ]) ? '' : Security::remove_XSS ($ details ['lp_maker ' ]));
309- // $url_start_lp .= '&isStudentView=true';
309+ $ url_start_lp .= '&isStudentView=true ' ;
310310 $ extra = $ lpVisibility ? '' : get_lang ('Learners cannot see this learning path ' );
311311 }
312312
You can’t perform that action at this time.
0 commit comments