New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure the requestor is a member of the origin, not the person invited. #1609

merged 1 commit into from Dec 29, 2016
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings


Just for now

@@ -154,7 +154,7 @@ pub fn origin_invitation_create(req: &mut Envelope,
let mut invitation = proto::OriginInvitation::new();
if !try!(state.datastore
.is_origin_member(msg.get_account_id(), msg.get_origin_name())) {
.is_origin_member(msg.get_owner_id(), msg.get_origin_name())) {
debug!("Can't invite to this org unless your already a member");
let err = net::err(ErrCode::ACCESS_DENIED, "vt:origin-create:0");
try!(req.reply_complete(sock, &err));
ProTip! Use n and p to navigate between commits in a pull request.