Commit a4ffa3cb authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

'onlyoffice' test key

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64958 954022d7-b5bf-4e40-9824-e11837661b57
parent c007ae27
......@@ -42,7 +42,9 @@ function CheckLicense(licenseUrl, userId, callback) {
function CheckUserInLicense(userId, oLicense) {
var res = false;
try {
if (oLicense.users && oLicense.users.hasOwnProperty(userId)) {
if ('onlyoffice' === oLicense['company_id']) {
res = true;
} else if (oLicense.users && oLicense.users.hasOwnProperty(userId)) {
var endDate = new Date(oLicense.users[userId]);
res = endDate >= new Date();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment