mirror of https://github.com/sualko/cloud_bbb
Compare commits
No commits in common. "ab314393e9a68d7298ae19e506b7e48da454d339" and "858753022bc27e14206a4f4ffabdc43a8aeac948" have entirely different histories.
ab314393e9
...
858753022b
|
@ -11,7 +11,6 @@ use OCP\AppFramework\Controller;
|
||||||
use OCP\AppFramework\Http;
|
use OCP\AppFramework\Http;
|
||||||
use OCP\AppFramework\Http\DataResponse;
|
use OCP\AppFramework\Http\DataResponse;
|
||||||
|
|
||||||
use OCP\IGroupManager;
|
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
use OCP\IUserManager;
|
use OCP\IUserManager;
|
||||||
|
|
||||||
|
@ -25,9 +24,6 @@ class RoomShareController extends Controller {
|
||||||
/** @var IUserManager */
|
/** @var IUserManager */
|
||||||
private $userManager;
|
private $userManager;
|
||||||
|
|
||||||
/** @var IGroupManager */
|
|
||||||
private $groupManager;
|
|
||||||
|
|
||||||
/** @var RoomService */
|
/** @var RoomService */
|
||||||
private $roomService;
|
private $roomService;
|
||||||
|
|
||||||
|
@ -41,7 +37,6 @@ class RoomShareController extends Controller {
|
||||||
IRequest $request,
|
IRequest $request,
|
||||||
RoomShareService $service,
|
RoomShareService $service,
|
||||||
IUserManager $userManager,
|
IUserManager $userManager,
|
||||||
IGroupManager $groupManager,
|
|
||||||
RoomService $roomService,
|
RoomService $roomService,
|
||||||
CircleHelper $circleHelper,
|
CircleHelper $circleHelper,
|
||||||
$userId
|
$userId
|
||||||
|
@ -49,7 +44,6 @@ class RoomShareController extends Controller {
|
||||||
parent::__construct($appName, $request);
|
parent::__construct($appName, $request);
|
||||||
$this->service = $service;
|
$this->service = $service;
|
||||||
$this->userManager = $userManager;
|
$this->userManager = $userManager;
|
||||||
$this->groupManager = $groupManager;
|
|
||||||
$this->roomService = $roomService;
|
$this->roomService = $roomService;
|
||||||
$this->circleHelper = $circleHelper;
|
$this->circleHelper = $circleHelper;
|
||||||
$this->userId = $userId;
|
$this->userId = $userId;
|
||||||
|
@ -96,14 +90,6 @@ class RoomShareController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
$roomShare->setShareWithDisplayName($circle->getName());
|
$roomShare->setShareWithDisplayName($circle->getName());
|
||||||
} elseif ($roomShare->getShareType() === RoomShare::SHARE_TYPE_GROUP) {
|
|
||||||
$shareWithGroup = $this->groupManager->get($roomShare->getShareWith());
|
|
||||||
|
|
||||||
if ($shareWithGroup === null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$roomShare->setShareWithDisplayName($shareWithGroup->getDisplayName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$shares[] = $roomShare;
|
$shares[] = $roomShare;
|
||||||
|
|
|
@ -9,7 +9,6 @@ use OCA\BigBlueButton\Db\RoomShare;
|
||||||
use OCA\BigBlueButton\Service\RoomService;
|
use OCA\BigBlueButton\Service\RoomService;
|
||||||
use OCA\BigBlueButton\Service\RoomShareService;
|
use OCA\BigBlueButton\Service\RoomShareService;
|
||||||
use OCP\AppFramework\Http;
|
use OCP\AppFramework\Http;
|
||||||
use OCP\IGroupManager;
|
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
use OCP\IUserManager;
|
use OCP\IUserManager;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
@ -20,7 +19,6 @@ class RoomShareControllerTest extends TestCase {
|
||||||
private $roomService;
|
private $roomService;
|
||||||
private $circleHelper;
|
private $circleHelper;
|
||||||
private $userManager;
|
private $userManager;
|
||||||
private $groupManager;
|
|
||||||
private $controller;
|
private $controller;
|
||||||
|
|
||||||
private $userId = 'user_foo';
|
private $userId = 'user_foo';
|
||||||
|
@ -31,7 +29,6 @@ class RoomShareControllerTest extends TestCase {
|
||||||
$this->request = $this->createMock(IRequest::class);
|
$this->request = $this->createMock(IRequest::class);
|
||||||
$this->service = $this->createMock(RoomShareService::class);
|
$this->service = $this->createMock(RoomShareService::class);
|
||||||
$this->userManager = $this->createMock(IUserManager::class);
|
$this->userManager = $this->createMock(IUserManager::class);
|
||||||
$this->groupManager = $this->createMock(IGroupManager::class);
|
|
||||||
$this->roomService = $this->createMock(RoomService::class);
|
$this->roomService = $this->createMock(RoomService::class);
|
||||||
$this->circleHelper = $this->createMock(CircleHelper::class);
|
$this->circleHelper = $this->createMock(CircleHelper::class);
|
||||||
|
|
||||||
|
@ -40,7 +37,6 @@ class RoomShareControllerTest extends TestCase {
|
||||||
$this->request,
|
$this->request,
|
||||||
$this->service,
|
$this->service,
|
||||||
$this->userManager,
|
$this->userManager,
|
||||||
$this->groupManager,
|
|
||||||
$this->roomService,
|
$this->roomService,
|
||||||
$this->circleHelper,
|
$this->circleHelper,
|
||||||
$this->userId
|
$this->userId
|
||||||
|
|
|
@ -132,7 +132,7 @@ const EditRoomDialog: React.FC<Props> = ({ room, restriction, updateProperty, op
|
||||||
|
|
||||||
{room.access === Access.InternalRestricted &&
|
{room.access === Access.InternalRestricted &&
|
||||||
<div className="bbb-form-element bbb-form-shareWith">
|
<div className="bbb-form-element bbb-form-shareWith">
|
||||||
<span className="icon icon-details icon-visible"></span><em>{t('bbb', 'Access') + ' : ' + descriptions.internalRestrictedShareWith}</em>
|
<span className="icon icon-details icon-visible"></span><em>{`${t('bbb', 'Access')} : ${descriptions.internalRestrictedShareWith}`}</em>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,12 @@ const RecordingRow: React.FC<Props> = ({recording, isAdmin, deleteRecording, sto
|
||||||
function checkPublished(recording: Recording, onChange: (value: boolean) => void) {
|
function checkPublished(recording: Recording, onChange: (value: boolean) => void) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<input id={'bbb-record-state-' + recording.id}
|
<input id={`bbb-record-state-${recording.id}`}
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
className="checkbox"
|
className="checkbox"
|
||||||
checked={recording.state === 'published'}
|
checked={recording.state === 'published'}
|
||||||
onChange={(event) => onChange(event.target.checked)} />
|
onChange={(event) => onChange(event.target.checked)} />
|
||||||
<label htmlFor={'bbb-record-state-' + recording.id}>{t('bbb', 'Published')}</label>
|
<label htmlFor={`bbb-record-state-${recording.id}`}>{t('bbb', 'Published')}</label>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@ const ShareWith: React.FC<Props> = ({ room, permission, shares: allShares, setSh
|
||||||
</div>
|
</div>
|
||||||
<div className="bbb-shareWith__item__label">
|
<div className="bbb-shareWith__item__label">
|
||||||
<h5>{displayName}
|
<h5>{displayName}
|
||||||
{(share.id === ROOM_OWNER_ID || !isOwner) && (' (' + permissionLabel(share.permission) + ')')}
|
{(share.id === ROOM_OWNER_ID || !isOwner) && ` (${permissionLabel(share.permission)})`}
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
{(share.id > ROOM_OWNER_ID && isOwner) && selectPermission(share.permission, (value) => {
|
{(share.id > ROOM_OWNER_ID && isOwner) && selectPermission(share.permission, (value) => {
|
||||||
|
|
Loading…
Reference in New Issue