Skip to content

Re-Enable up for Alpha#25

Merged
JakeCooper merged 5 commits intomasterfrom
cooper/up-enabled
Oct 16, 2020
Merged

Re-Enable up for Alpha#25
JakeCooper merged 5 commits intomasterfrom
cooper/up-enabled

Conversation

@JakeCooper
Copy link
Copy Markdown
Contributor

  • Up enabled for Alpha Users

Comment thread controller/up.go
return nil
}

func (c *Controller) Up(ctx context.Context) error {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is only enabled for admins, should we also prevent non-admins from using this command?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would mean exposing an endpoint to determine if a user is or isn't an admin. Too much leakage IMO.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have a gql endpoint setup to fetch the user. We could a also return the isAdmin flag there. Alternatively, we could just check if there is any user config defined (admins will obviously be logged in)

Comment thread controller/up.go
Comment thread controller/up.go Outdated
Comment thread gateway/up.go Outdated
Comment thread controller/up.go Outdated
@JakeCooper JakeCooper merged commit aacce40 into master Oct 16, 2020
@JakeCooper JakeCooper deleted the cooper/up-enabled branch October 16, 2020 00:46
sdan pushed a commit that referenced this pull request Oct 16, 2020
* Re-Enable up for Alpha

* Update gateway/up.go

Co-authored-by: Jake Runzer <jakerunzer@gmail.com>

* Ignore node_modules

* Gitignore respected

Co-authored-by: Jake Runzer <jakerunzer@gmail.com>
sdan pushed a commit that referenced this pull request Oct 16, 2020
* Re-Enable up for Alpha

* Update gateway/up.go

Co-authored-by: Jake Runzer <jakerunzer@gmail.com>

* Ignore node_modules

* Gitignore respected

Co-authored-by: Jake Runzer <jakerunzer@gmail.com>
sdan pushed a commit that referenced this pull request Oct 16, 2020
* Re-Enable up for Alpha

* Update gateway/up.go

Co-authored-by: Jake Runzer <jakerunzer@gmail.com>

* Ignore node_modules

* Gitignore respected

Co-authored-by: Jake Runzer <jakerunzer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants