Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

admin roles #962

Closed
TsarS opened this issue Oct 5, 2015 · 1 comment
Closed

admin roles #962

TsarS opened this issue Oct 5, 2015 · 1 comment

Comments

@TsarS
Copy link

TsarS commented Oct 5, 2015

I want to register different roles, except the admin. Can i use in

 users.authentication.server.controller.js

like

        // For security measurement we remove the roles from the req.body object
 if (req.body.roles === 'admin') {
  console.log('NO Chances')
  var roles = req.body.roles;
 };

?

@TsarS
Copy link
Author

TsarS commented Oct 5, 2015

Ooops. Sorry. I prepared it for meanjs group. It's not a issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant