Skip to content

Error: Only STAFF members are allowed to entry before DemocracyOS is initialized. #1661

@crass

Description

@crass

I've set up a development instance on a local server and signed up with the email I set in STAFF, following the installation instructions. Since I'm in development mode, the account is automatically verified. When I login with a bad password I get, correctly, an error saying invalid email or password. And when I try to login I get the following error. It is my understanding that I must first login to configure a forum. Has anyone else encountered this, know how to work around it, or have an idea of what I might have done wrong?

  democracyos:db-api:forum Searching for forum with name undefined +342ms
  democracyos:db-api:forum No forum found with name undefined +9ms
Error: Only STAFF members are allowed to entry before DemocracyOS is initialized.
    at module.exports.canManage (/home/user/democracyos.git/lib/middlewares/user/index.js:33:12)
    at Layer.handle [as handle_request] (/home/user/democracyos.git/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/user/democracyos.git/node_modules/express/lib/router/route.js:137:13)
    at /home/user/democracyos.git/lib/middlewares/forum-middlewares/index.js:97:5
    at Query.<anonymous> (/home/user/democracyos.git/lib/db-api/forum.js:165:16)
    at /home/user/democracyos.git/node_modules/kareem/index.js:273:21
    at /home/user/democracyos.git/node_modules/kareem/index.js:131:16
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions