-
Notifications
You must be signed in to change notification settings - Fork 173
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
base: Ursa-21.2.0
Are you sure you want to change the base?
Conversation
…e + block login when support access not allowed
…Tucana-20.20.0-PLAT-24956
…Tucana-20.20.0-PLAT-24956
|
||
$allowedUntil = $this->getSupportAccessAllowedUntil(); | ||
$allowedUntil = $allowedUntil ? $allowedUntil : (time() - 3600); | ||
return (time() < $allowedUntil); |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ in new line
No description provided.