fix rights for exportwebsite

This commit is contained in:
Lamrani Abdel 2024-01-06 19:48:11 +01:00
parent 5f4e584425
commit bfae93b3b3

View file

@ -2399,7 +2399,7 @@ if ($usercanedit && (($action == 'updatesource' || $action == 'updatecontent' ||
}
// Export site
if ($action == 'exportsite') {
if ($action == 'exportsite' && $user->hasRight('website', 'export')) {
$fileofzip = $object->exportWebSite();
if ($fileofzip) {