M
M
midarovrk2020-01-06 10:46:35
CMS
midarovrk, 2020-01-06 10:46:35

How to prevent a group from posting news on the homepage in DLE?

Hello.
Help solve the problem.
Created a group of moderators.
In the group settings:
In the "Admin panel" tab, everything is disabled, except: "Editing all news"
In the "News" tab, it is enabled: "Allow to add news from the site"
In the "News" tab, it is disabled : "Allow to publish on the main page"
The group does not have access in the admin panel, there is no access to quick editing of news.
The quick edit button is hidden like this:

[group=1][edit]<i class="fa fa-cog" style="margin-left: 5px;"></i>[/edit][/group]

Users from this group only have access to such links /?do=addnews&id=IdNews
They go to the news that are being moderated, check, enter the necessary information in the additional field, and press save.
And that's all, on this page there are no checkboxes "Publish on the main page".
And {admintag} is generally empty, there are no checkboxes there either.
So why does the news automatically tick "Publish on the main"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
midarovrk, 2020-01-20
@midarovrk

In general, I solved the problem.
In the file engine/modules/addnews.php on line 167 is:

if( ! $user_group[$member_id['user_group']]['moderation'] ) {
            $approve = 0;
            $allow_comm = 1;
            $allow_main = 1;
            $allow_rating = 1;
            $news_fixed = 0;
        }

Those. if the group has permission to "Edit all news", then judging by this code, DLEshka already does not care about all sorts of checkboxes.
I solved the problem by changing $allow_main = 1; on $allow_main = 0;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question