mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-18 16:18:04 +00:00
Can update general settings
This commit is contained in:
@ -78,6 +78,16 @@ class GeneralSettings {
|
||||
return $this->openPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make sure the public and the open status of the page
|
||||
* are coherent
|
||||
*/
|
||||
public function rationalizePublicOpenStatus(){
|
||||
//Make sure the page is not open if it is not public
|
||||
if(!$this->is_publicPage())
|
||||
$this->set_openPage(false);
|
||||
}
|
||||
|
||||
//Set and get the comments status on user page
|
||||
public function set_allowComments(bool $allowComments){
|
||||
$this->allowComments = $allowComments;
|
||||
|
Reference in New Issue
Block a user