use wcf\system\clipboard\ClipboardHandler;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\IllegalLinkException;
+use wcf\system\exception\PermissionDeniedException;
use wcf\system\exception\UserInputException;
use wcf\system\session\SessionHandler;
use wcf\system\WCF;
if (empty($this->users) || count($this->users) < 2) {
throw new IllegalLinkException();
}
+ foreach ($this->users as $user) {
+ if (!$user->canEdit()) {
+ throw new PermissionDeniedException();
+ }
+ }
$this->userIDs = array_keys($this->users);
}