LoadUserIdentity(); if ($userIdentity != null) { if ($identityCheckStrategy->CheckUsernameAndEncryptedPassword( $userIdentity->userName, $userIdentity->password)) { $currentUser = $userIdentity->userName; return $currentUser; } } } } return 'guest'; } // TODO : remove this function function GetUserGrantInfo($username, $tableName) { global $userGrants; if (isset($userGrants[$username])) if (isset($userGrants[$username][$tableName])) return $userGrants[$username][$tableName]; } function GetCurrentUserGrantForDataSource($dataSourceName) { return GetApplication()->GetCurrentUserGrants($dataSourceName); } function GetCurrentUserRecordPermissionsForDataSource($dataSourceName) { return GetApplication()->GetCurrentUserRecordPermissionsForDataSource($dataSourceName); } #endregion