Skip to content

Conversation

xbill82
Copy link
Contributor

@xbill82 xbill82 commented May 27, 2016

Added the getMyRights and getUserRights to the KuzzleSecurity object.

Question: shall we create a userRights object?

@xbill82 xbill82 added the wip label May 27, 2016
@xbill82 xbill82 changed the title KUZ-574 getRights methods KUZ-574 getRights methods to KuzzleSecurity May 27, 2016
@codecov-io
Copy link

codecov-io commented May 27, 2016

Current coverage is 100%

Merging #88 into develop will not change coverage

@@            develop        #88   diff @@
==========================================
  Files            11         11          
  Lines          1477       1500    +23   
  Methods         232        236     +4   
  Messages          0          0          
  Branches        376        383     +7   
==========================================
+ Hits           1477       1500    +23   
  Misses            0          0          
  Partials          0          0          

Powered by Codecov. Last updated by 0cf0d8c...fd1f5c1

throw new Error('userId parameter is mandatory for isActionAllowed function');
}

if (!cb && typeof options === 'function') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Callback should be mandatory, otherwise there is no way to get the result.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@xbill82 xbill82 removed the wip label Jun 7, 2016
@scottinet
Copy link
Contributor

+1

1 similar comment
@stafyniaksacha
Copy link
Contributor

+1

@scottinet scottinet merged commit 6bcac11 into develop Jun 7, 2016
@scottinet scottinet deleted the KUZ-574-getRights-methods branch June 7, 2016 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants