Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLAT-24956+PLAT-24957: Add support for configuring support access mode + block login when support access not allowed #12902

Open
wants to merge 4 commits into
base: Ursa-21.2.0
Choose a base branch
from

Conversation

yossipapi
Copy link
Collaborator

No description provided.

…e + block login when support access not allowed
@yossipapi yossipapi changed the base branch from Tucana-20.20.0 to Ursa-21.0.0 September 24, 2024 12:22
@yossipapi yossipapi changed the base branch from Ursa-21.0.0 to Ursa-21.2.0 October 27, 2024 15:02

$allowedUntil = $this->getSupportAccessAllowedUntil();
$allowedUntil = $allowedUntil ? $allowedUntil : (time() - 3600);
return (time() < $allowedUntil);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the case you set allowedUntil= time() - 3600 this condition in line 2466 will always be false, is this intended?

@@ -523,6 +523,10 @@ class KalturaErrors extends APIErrors
const PROPERTY_IS_NOT_DEFINED = "PROPERTY_IS_NOT_DEFINED;PROP,TYPE;The property \"@PROP@\" is not defined on type \"@TYPE@\"";

const GROUPS_CANNOT_CO_EXIST = "GROUPS_CANNOT_CO_EXIST;userId,group,blockedCoExist;Cannot add user [@userId@] to group [@group@], User is already member of a group with coexistence enforcement [@blockedCoExist@]";

const CAN_ONLY_BE_UPDATED_BY_ACCOUNT_OWNER = "CAN_ONLY_BE_CHANGED_BY_ACCOUNT_OWNER;;Support access mode can only be updated by the account owner";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would chose either changed/updated and use one terminology for all

@@ -210,6 +210,10 @@ public function getAdminSessionAction($pId, $userId = null)
$userId = $dbPartner->getAdminUserId();
}

if(!$dbPartner->isSupportAccessAllowed()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ in new line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants