Skip to content

[FIX] Not importing users from csv file#24073

Closed
kulkarnigaurav38 wants to merge 2 commits intoRocketChat:developfrom
kulkarnigaurav38:fix/import-csvFile-bug
Closed

[FIX] Not importing users from csv file#24073
kulkarnigaurav38 wants to merge 2 commits intoRocketChat:developfrom
kulkarnigaurav38:fix/import-csvFile-bug

Conversation

@kulkarnigaurav38
Copy link
Copy Markdown

The users.csv file was being read properly, but the importing process throws an error when trying to import users details. Further details are mentioned in the issue.

Proposed changes (including videos or screenshots)

Rocket.Chat.-.Google.Chrome.2021-12-31.12-58-26.mp4

Issue(s)

#23997

Steps to test or reproduce

Further comments

Error which showed up earlier in the logs is solved now
image

0() {
return !Meteor.userId() || !hasPermission(Meteor.userId(), 'edit-other-user-info');
}, // Administrators have permission to change others names, so don't limit those
0() { return !Meteor.userId || !hasPermission(Meteor.userId, 'edit-other-user-info'); }, // Administrators have permission to change others names, so don't limit those
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't look right. Meteor.userId is a function, therefore !Meteor.userId is always false. The first parameter of hasPermission(userId, permissionId, scope) is supposed to be the value returned by calling Meteor.userId().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants