Skip to content

Commit

Permalink
add permissions mapping
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsaut <[email protected]>
  • Loading branch information
FlorentPoinsaut committed Nov 3, 2022
1 parent 0a4653c commit 48c7f3f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/Service/ReportSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

namespace OCA\ShareListing\Service;

use Icewind\SMB\Exception\NotFoundException;
use iter;
use OC\Files\Search\SearchBinaryOperator;
use OC\Files\Search\SearchComparison;
Expand All @@ -39,6 +38,7 @@
use OCP\Files\Folder;
use OCP\Files\InvalidDirectoryException;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\Files\Search\ISearchBinaryOperator;
use OCP\Files\Search\ISearchComparison;
use OCP\Files\Search\ISearchOrder;
Expand Down Expand Up @@ -182,6 +182,14 @@ public function sendReport(string $recipient, \DateTimeImmutable $dateTime)
);
}

$template->addBodyText('Permissions mapping:');
$template->addBodyListItem('1 = read');
$template->addBodyListItem('2 = update');
$template->addBodyListItem('4 = create');
$template->addBodyListItem('8 = delete');
$template->addBodyListItem('16 = share');
$template->addBodyListItem('31 = all (default: 31, for public shares: 1)');

$template->addFooter('', $language);

$message = $this->mailer->createMessage();
Expand Down

0 comments on commit 48c7f3f

Please sign in to comment.