mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Add an option do disable share only
This commit is contained in:
parent
456c5f07ce
commit
042e200f74
2 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,7 @@ class CustomizeAdvanced extends PluginAbstract {
|
||||||
$obj->EnableWavesurfer = false;
|
$obj->EnableWavesurfer = false;
|
||||||
$obj->EnableMinifyJS = false;
|
$obj->EnableMinifyJS = false;
|
||||||
$obj->disableShareAndPlaylist = false;
|
$obj->disableShareAndPlaylist = false;
|
||||||
|
$obj->disableShareOnly = false;
|
||||||
$obj->disableEmailSharing = false;
|
$obj->disableEmailSharing = false;
|
||||||
$obj->splitBulkEmailSend = 50;
|
$obj->splitBulkEmailSend = 50;
|
||||||
$obj->disableComments = false;
|
$obj->disableComments = false;
|
||||||
|
|
|
@ -172,6 +172,11 @@ class CustomizeUser extends PluginAbstract {
|
||||||
static function canShareVideosFromUser($users_id) {
|
static function canShareVideosFromUser($users_id) {
|
||||||
global $advancedCustom;
|
global $advancedCustom;
|
||||||
|
|
||||||
|
if (!empty($advancedCustom->disableShareOnly)) {
|
||||||
|
_error_log("CustomizeUser::canShareVideosFromUser disableShareOnly");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($advancedCustom->disableShareAndPlaylist)) {
|
if (!empty($advancedCustom->disableShareAndPlaylist)) {
|
||||||
_error_log("CustomizeUser::canShareVideosFromUser disableShareAndPlaylist");
|
_error_log("CustomizeUser::canShareVideosFromUser disableShareAndPlaylist");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue