meteor-first-user-admin
Adds method to make the first Meteor user an admin, via an 'admin' role. The method is called on account login. If there is a better place to call the method, which would reduce server resource usage, please open a feature request.
Methods
This package provides the following methods, defined in server-side code.
addFirstUserToAdminRole
Takes an Admin Role (String) as first agrment. Checks if role exists and adds first user to Admin Role.
Admin Role name configuration
By default, the package defines the 'admin' role.
If you would like a different Admin role name, add the following to your Meteor.settings:
{
"adminRoleName": "admin-role-name"
}