diff options
Diffstat (limited to 'include/dbus_privileges.hpp')
-rw-r--r-- | include/dbus_privileges.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dbus_privileges.hpp b/include/dbus_privileges.hpp index b2bb1e3b70..a58f9bebd0 100644 --- a/include/dbus_privileges.hpp +++ b/include/dbus_privileges.hpp @@ -109,7 +109,7 @@ inline bool template <typename CallbackFn> void afterGetUserInfo(Request& req, const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, - BaseRule& rule, CallbackFn&& callback, + BaseRule& rule, CallbackFn callback, const boost::system::error_code& ec, const dbus::utility::DBusPropertiesMap& userInfoMap) { @@ -151,7 +151,7 @@ void validatePrivilege(Request& req, std::string username = req.session->username; crow::connections::systemBus->async_method_call( [req{std::move(req)}, asyncResp, &rule, - callback(std::forward<CallbackFn>(callback))]( + callback = std::forward<CallbackFn>(callback)]( const boost::system::error_code& ec, const dbus::utility::DBusPropertiesMap& userInfoMap) mutable { afterGetUserInfo(req, asyncResp, rule, |