Commit 38ab16ba authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4148 (Possibly to manually go to add news/blog/event URL even with no access)

parent 0b15ee0e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -285,6 +285,9 @@ class Module_cms_blogs extends Standard_crud_module
        }

        $cats1 = create_selection_list_news_categories($main_news_category, false, true, false, true);
        if ($cats1->is_empty()) {
            warn_exit(do_lang_tempcode('NO_CATEGORIES', 'news_category'));
        }
        $cats2 = create_selection_list_news_categories((is_null($news_category) || (count($news_category) == 0)) ? array(get_param_integer('cat', null)) : $news_category, false, true, true, false);

        $fields = new Tempcode();
+3 −0
Original line number Diff line number Diff line
@@ -580,6 +580,9 @@ class Module_cms_calendar extends Standard_crud_module

        // Type
        $type_list = create_selection_list_event_types($type);
        if ($type_list->is_empty()) {
            warn_exit(do_lang_tempcode('NO_CATEGORIES', 'calendar_type'));
        }
        $fields->attach(form_input_list(do_lang_tempcode('TYPE'), do_lang_tempcode('DESCRIPTION_EVENT_TYPE'), 'type', $type_list));

        // Priority
+3 −0
Original line number Diff line number Diff line
@@ -361,6 +361,9 @@ class Module_cms_news extends Standard_crud_module
        }

        $cats1 = create_selection_list_news_categories($main_news_category, false, true, is_integer($main_news_category), null, true);
        if ($cats1->is_empty()) {
            warn_exit(do_lang_tempcode('NO_CATEGORIES', 'news_category'));
        }
        $cats2 = create_selection_list_news_categories(is_null($news_category) ? array() : $news_category, false, true, is_integer($main_news_category), null, true);

        $fields = new Tempcode();