summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Client/UserCommands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Client/UserCommands.cpp b/src/Client/UserCommands.cpp
index cd2ff5a..ab6449e 100644
--- a/src/Client/UserCommands.cpp
+++ b/src/Client/UserCommands.cpp
@@ -123,7 +123,7 @@ void UserCommands::userInfoCommand(CommandParser *commandParser, const std::vect
std::cout << " Group: " << getGroupName(commandParser, userInfo->getGid(), true) << std::endl;
std::cout << " Full name: " << userInfo->getFullName() << std::endl << std::endl;
- boost::shared_ptr<const std::set<unsigned long> > groups = commandParser->application->getUserManager()->getUserGroupList(uid);
+ boost::shared_ptr<const std::set<unsigned long> > groups = commandParser->application->getUserManager()->getUserGroupList(userInfo->getUid());
if(!groups->empty()) {
std::cout << " The user is member of " << groups->size() << " group" << (groups->size()==1 ? "" : "s") << ":" << std::endl;
@@ -186,7 +186,7 @@ void UserCommands::groupInfoCommand(CommandParser *commandParser, const std::vec
std::cout << " Group name: " << groupInfo->getName() << " (" << groupInfo->getGid() << ")" << std::endl << std::endl;
- boost::shared_ptr<const std::set<unsigned long> > users = commandParser->application->getUserManager()->getGroupUserList(gid);
+ boost::shared_ptr<const std::set<unsigned long> > users = commandParser->application->getUserManager()->getGroupUserList(groupInfo->getGid());
if(!users->empty()) {
std::cout << " The group has " << users->size() << " member" << (users->size()==1 ? "" : "s") << ":" << std::endl;