Skip to content

Commit

Permalink
fix(accounts): invalid user function [unstable]
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Jul 5, 2022
1 parent 7fdd11a commit f62045a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 380 deletions.
2 changes: 1 addition & 1 deletion src/controllers/api/v2/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ accountsApi.sessionUser = async (req, res) => {

let groups = []
if (dbUser.role.isAdmin || dbUser.role.isAgent) groups = await Department.getDepartmentGroupsOfUser(dbUser._id)
else groups = await User.getAllGroupsOfUser(dbUser._id)
else groups = await Group.getAllGroupsOfUser(dbUser._id)

groups = groups.map(g => {
return g._id
Expand Down
54 changes: 0 additions & 54 deletions src/public/js/modules/ajaximgupload.js

This file was deleted.

35 changes: 0 additions & 35 deletions src/public/js/modules/socket.io/noticeUI.js

This file was deleted.

271 changes: 0 additions & 271 deletions src/public/js/modules/tour.js

This file was deleted.

19 changes: 0 additions & 19 deletions src/public/js/sessionLoader.js

This file was deleted.

0 comments on commit f62045a

Please sign in to comment.