Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error invoking Method 'adminAddUserToRole': Internal server error [500] #256

Closed
55 opened this issue Jul 21, 2015 · 1 comment
Closed

Error invoking Method 'adminAddUserToRole': Internal server error [500] #256

55 opened this issue Jul 21, 2015 · 1 comment
Labels

Comments

@55
Copy link
Contributor

55 commented Jul 21, 2015

Trying to add Admin role to user here:
http://localhost:3000/admin/Users/[userId]/edit

Have this error in client console:

events.coffee:20 adding user
debug.js:41 Error invoking Method 'adminAddUserToRole': Internal server error [500]

And this in server console:

I20150721-12:45:31.096(3)? Exception while invoking method 'adminAddUserToRole' Error: When the modifier option is true, validation object must have at least one operator
I20150721-12:45:31.096(3)?     at checkModifier (packages/aldeed:simple-schema/simple-schema-validation.js:271:1)
I20150721-12:45:31.096(3)?     at doValidation1 (packages/aldeed:simple-schema/simple-schema-validation.js:321:1)
I20150721-12:45:31.096(3)?     at doValidation (packages/aldeed:simple-schema/simple-schema-context.js:9:1)
I20150721-12:45:31.096(3)?     at SimpleSchemaValidationContext.simpleSchemaValidationContextValidate [as validate] (packages/aldeed:simple-schema/simple-schema-context.js:44:1)
I20150721-12:45:31.096(3)?     at [object Object].doValidate (packages/aldeed:collection2/collection2.js:317:1)
I20150721-12:45:31.096(3)?     at [object Object].Mongo.Collection.(anonymous function) [as update] (packages/aldeed:collection2/collection2.js:154:1)
I20150721-12:45:31.097(3)?     at Object._.extend._updateUserRoles (packages/alanning:roles/roles_common.js:680:1)
I20150721-12:45:31.097(3)?     at Object._.extend.addUsersToRoles (packages/alanning:roles/roles_common.js:145:1)
I20150721-12:45:31.097(3)?     at [object Object].Meteor.methods.adminAddUserToRole (packages/yogiben:admin/lib/server/methods.coffee:97:10)
I20150721-12:45:31.097(3)?     at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1617:1)
@55 55 added the bug label Jul 21, 2015
@55
Copy link
Contributor Author

55 commented Aug 4, 2015

Since yogiben:admin is removed, it's no longer relevant.

@55 55 closed this as completed Aug 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant