mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update video save method to bypass user permission check when necessary
This commit is contained in:
parent
199928aa66
commit
9e914ddf19
1 changed files with 1 additions and 1 deletions
|
@ -824,7 +824,7 @@ Disallow: *action=tagsearch*
|
|||
}
|
||||
$externalOptions->SEO = array('ShortSummary'=>$ShortSummary, 'MetaDescription'=>$MetaDescription);
|
||||
$video->setExternalOptions(json_encode($externalOptions));
|
||||
return $video->save();
|
||||
return $video->save(false, !$checkUserPermission);
|
||||
}
|
||||
|
||||
public static function getShortSummaryAndMetaDescriptionVideo($videos_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue