Skip to content
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

Internal server error on Delete Department #4720

Closed
deep0892 opened this issue Oct 25, 2016 · 1 comment · Fixed by #4726
Closed

Internal server error on Delete Department #4720

deep0892 opened this issue Oct 25, 2016 · 1 comment · Fixed by #4726

Comments

@deep0892
Copy link
Contributor

Livechat instead of livechat in
Rocket.Chat/packages/rocketchat-livechat/server/methods/removeDepartment.js

`Meteor.methods({
'livechat:removeDepartment'(_id) {
if (!Meteor.userId() || !RocketChat.authz.hasPermission(Meteor.userId(), 'view-livechat-manager')) {
throw new Meteor.Error('error-not-allowed', 'Not allowed', { method: 'livechat:removeDepartment' });
}

    //return RocketChat.livechat.removeDepartment(_id);
            return RocketChat.Livechat.removeDepartment(_id);
}

});`

@deep0892
Copy link
Contributor Author

Sorry, running short on time, couldn't do a pr, reporting issue before i forget this !!!!!!

marceloschmidt added a commit that referenced this issue Oct 25, 2016
Closes #4720
Thanks to @deep0982
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 a pull request may close this issue.

1 participant