Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Admin user role undefined on initial account

Open MuhClaren opened this issue 10 years ago • 1 comments

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.

MuhClaren avatar Dec 11 '15 03:12 MuhClaren

relevant: https://github.com/RocketChat/Rocket.Chat/issues/1646

MuhClaren avatar Dec 12 '15 16:12 MuhClaren