RSS Feed/News Custom user fields code wont update

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,701
Points
823

Reputation:

Hi,

I think this may be due to permissions. but am trying to find a way around it.
I have a custom user field but the user field is not editable by end users only Admin and Moderator. However the field needs to be checked by code if certain conditions are met.
I run the code and everything else saves but the custom field does not.

At the moment the user field is a drop down with a yes/no value I run

PHP:

$userEm = $app->em()->findOne('XF:User', ['user_id' => $json["vendorData"]])...

Read more

Continue reading...
 
Status
Not open for further replies.
Top