We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc24215 commit 58c54f4Copy full SHA for 58c54f4
main/lp/storageapi.php
@@ -67,7 +67,7 @@
67
function storage_can_set($sv_user)
68
{
69
// platform admin can change any user's stored values, other users can only change their own values
70
- $allowed = ((api_is_platform_admin()) || ($sv_user == api_get_user_id()));
+ $allowed = ((api_is_platform_admin()) || (!empty($sv_user) && $sv_user == api_get_user_id()));
71
if (!$allowed) {
72
echo "ERROR : Not allowed";
73
}
0 commit comments