fixes #1587 do not register a login activity for pwg.images.uploadAsync

This commit is contained in:
plegall
2021-12-23 17:55:12 +01:00
parent f744028fdb
commit 21ac55c5a5
+6
View File
@@ -530,6 +530,12 @@ function pwg_activity($object, $object_id, $action, $details=array())
{ {
global $user; global $user;
// in case of uploadAsync, do not log the automatic login as an independant activity
if (isset($_REQUEST['method']) and 'pwg.images.uploadAsync' == $_REQUEST['method'] and 'login' == $action)
{
return;
}
$object_ids = $object_id; $object_ids = $object_id;
if (!is_array($object_id)) if (!is_array($object_id))
{ {