You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2020. It is now read-only.
dibi::query("INSERT INTO [ajxp_roles] ([role_id],[serial_role],[searchable_repositories],[last_updated]) VALUES (%s, %bin, %s, %i)",
708
+
$roleId,
709
+
serialize($roleObject),
710
+
serialize($roleObject->listAcls()),
711
+
time()
712
+
);
708
713
break;
709
714
case"mysql":
710
-
dibi::query("INSERT INTO [ajxp_roles] ([role_id],[serial_role],[last_updated]) VALUES (%s, %s, %i)", $roleId, serialize($roleObject),time());
715
+
dibi::query("INSERT INTO [ajxp_roles] ([role_id],[serial_role],[last_updated]) VALUES (%s, %s, %i)",
716
+
$roleId,
717
+
serialize($roleObject),
718
+
time()
719
+
);
711
720
break;
712
721
default:
713
722
return"ERROR!, DB driver " . $this->sqlDriver["driver"] . " not supported yet in __FUNCTION__";
@@ -729,10 +738,10 @@ public function updateRole($role, $userObject = null)
729
738
$row = dibi::query("SELECT [role_id] FROM [ajxp_roles] WHERE [role_id]=%s", $role->getId());
730
739
$res = $row->fetchSingle();
731
740
if($res != null){
732
-
dibi::query("UPDATE [ajxp_roles] SET [serial_role]=%bin,[searchable_repositories]=%s WHERE [role_id]=%s", serialize($role), serialize($role->listAcls()), $role->getId());
741
+
dibi::query("UPDATE [ajxp_roles] SET [serial_role]=%bin,[searchable_repositories]=%s,[last_updated]=%i WHERE [role_id]=%s", serialize($role), serialize($role->listAcls()), time(), $role->getId());
733
742
}
734
743
else{
735
-
dibi::query("INSERT INTO [ajxp_roles] ([role_id],[serial_role],[searchable_repositories]) VALUES (%s, %bin,%s)", $role->getId(), serialize($role), serialize($role->listAcls()));
0 commit comments