Rocket.Chat
Rocket.Chat copied to clipboard
Admin user role undefined on initial account
I deployed a fresh clone from github tonight, launched via "meteor" and registered the initial user, expecting the admin user role to be automatically assigned. It wasn't. The admin user had no admin access.
Console output in relevant part:
I20151210-20:11:35.450(-7)? [publish] admin-settings
I20151210-20:11:35.451(-7)? [methods] hasPermission -> arguments: { '0': 'QKKXCYBxZZjjtKDoP', '1': 'view-privileged-setting' }
I20151210-20:11:35.451(-7)? [methods] getRolesForUser -> arguments: { '0': 'QKKXCYBxZZjjtKDoP', '1': undefined }
Manually setting the role ( https://github.com/RocketChat/Rocket.Chat/wiki/Creating-the-First-Admin ) worked as expected.
relevant: https://github.com/RocketChat/Rocket.Chat/issues/1646