leavclass error throw
This commit is contained in:
parent
7d2ad898ae
commit
7d3e2b60fc
@ -71,7 +71,7 @@ Meteor.methods({
|
|||||||
Meteor.users.update({_id: Meteor.userId()}, {$set: {profile: current}});
|
Meteor.users.update({_id: Meteor.userId()}, {$set: {profile: current}});
|
||||||
return 1
|
return 1
|
||||||
} else {
|
} else {
|
||||||
throw "You are the admin of this class. Transfer ownership in order to leave this class."
|
throw "You are currently the admin of this class. Transfer ownership in order to leave this class."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user