Thankful
I actually tried to hide the "
front page settings" option for the manager role. But there was no way because by disabling moodle/course: update, although I reached the goal, but the manager role can no longer create course.
That's why I decided to hide the "front page settings" option and its title (Its title is "front page") with css code. But these two texts have a common class with all the texts that are in the site administration, and by hiding one of them with that class, the other texts are also hidden. I created a dedicated ID for the front page settings option:
<a id=”hided" href=”
http://mysite.com” >front page settings</a>
and
<a id=”hide" href=”
http://mysite.com” >front page</a>
And then with CSS code I tried to hide the dedicated ID to hide the front page settings.
#hide {display: none;}
#hided {display: none;}
I created the #hide and #hided ID myself
But I did not succeed
And there was no problem that the front page settings option was hidden by the CSS code for all roles because when necessary I can temporarily display it and hide it again.
I can not use the #hided {display: none;} code, because the #hided ID for the "front page settings" and "front page" must be created first. Is that right?