nextcloud/apps/files_sharing/ajax/share.php

16 lines
339 B
PHP
Raw Normal View History

<?php
$RUNTIME_NOAPPS = true;
require_once('../../../lib/base.php');
require_once('../lib_share.php');
$sources = $_GET['sources'];
$uid_shared_with = $_GET['uid_shared_with'];
$permissions = $_GET['permissions'];
foreach ($sources as $source) {
foreach ($uid_shared_with as $uid) {
new OC_Share($source, $uid, $permissions);
}
}
?>