Skip to content

Commit

Permalink
Fix issue with JSONOBJECT operator parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nohponex committed Feb 12, 2016
1 parent 8e5d3c0 commit e468ffd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Models/Operator.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static function getByClassFlags($classFlags)
);
}

if (empty($operators)) {
if (empty($operators) && ($classFlags & Operator::CLASS_JSONOBJECT) === 0) {
throw new \Exception('Invalid operator class flags');
}

Expand Down
4 changes: 2 additions & 2 deletions src/Models/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class Request
* Optionaly it checks the authenticated user has a specific user_id
* @param integer $userId *[Optional]* Check if current user has the same id with $userId
* @return object Returns the user object
* @throws Phramework\Exceptions\PermissionException
* @throws Phramework\Exceptions\UnauthorizedException
* @throws \Phramework\Exceptions\PermissionException
* @throws \Phramework\Exceptions\UnauthorizedException
*/
public static function checkPermission($userId = false)
{
Expand Down

0 comments on commit e468ffd

Please sign in to comment.