mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #627 from gradido/login_fix_user_see_pending_creation
fix bug with user roles and pending transactions
This commit is contained in:
commit
3a2d7c4002
@ -163,6 +163,10 @@ std::vector<Poco::AutoPtr<controller::PendingTask>> PendingTasksManager::getTran
|
|||||||
Poco::ScopedLock<Poco::Mutex> _lock(mWorkMutex);
|
Poco::ScopedLock<Poco::Mutex> _lock(mWorkMutex);
|
||||||
std::vector<Poco::AutoPtr<controller::PendingTask>> transactions_to_sign;
|
std::vector<Poco::AutoPtr<controller::PendingTask>> transactions_to_sign;
|
||||||
|
|
||||||
|
if (user->getModel()->getRole() != model::table::ROLE_ADMIN) {
|
||||||
|
return transactions_to_sign;
|
||||||
|
}
|
||||||
|
|
||||||
for (auto map_it = mPendingTasks.begin(); map_it != mPendingTasks.end(); map_it++)
|
for (auto map_it = mPendingTasks.begin(); map_it != mPendingTasks.end(); map_it++)
|
||||||
{
|
{
|
||||||
auto list = map_it->second;
|
auto list = map_it->second;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user