Skip to content
Snippets Groups Projects
Commit 3330268b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add User.security.deletion_date property

corresponding wth new user DELDATE field
parent 9f258754
No related branches found
No related tags found
No related merge requests found
Pipeline #7928 passed
...@@ -64,6 +64,7 @@ enum { ...@@ -64,6 +64,7 @@ enum {
, USER_PROP_FIRSTON , USER_PROP_FIRSTON
, USER_PROP_EXPIRE , USER_PROP_EXPIRE
, USER_PROP_PWMOD , USER_PROP_PWMOD
, USER_PROP_DELDATE
, USER_PROP_LOGONS , USER_PROP_LOGONS
, USER_PROP_LTODAY , USER_PROP_LTODAY
, USER_PROP_TIMEON , USER_PROP_TIMEON
...@@ -240,6 +241,9 @@ static JSBool js_user_get(JSContext *cx, JSObject *obj, jsid id, jsval *vp) ...@@ -240,6 +241,9 @@ static JSBool js_user_get(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
case USER_PROP_PWMOD: case USER_PROP_PWMOD:
val = p->user->pwmod; val = p->user->pwmod;
break; break;
case USER_PROP_DELDATE:
val = p->user->deldate;
break;
case USER_PROP_LOGONS: case USER_PROP_LOGONS:
val = p->user->logons; val = p->user->logons;
break; break;
...@@ -925,6 +929,7 @@ static jsSyncPropertySpec js_user_security_properties[] = { ...@@ -925,6 +929,7 @@ static jsSyncPropertySpec js_user_security_properties[] = {
{ "minutes", USER_PROP_MIN, USER_PROP_FLAGS, 310 }, { "minutes", USER_PROP_MIN, USER_PROP_FLAGS, 310 },
{ "extra_time", USER_PROP_TEXTRA, USER_PROP_FLAGS, 310 }, { "extra_time", USER_PROP_TEXTRA, USER_PROP_FLAGS, 310 },
{ "expiration_date", USER_PROP_EXPIRE, USER_PROP_FLAGS, 310 }, { "expiration_date", USER_PROP_EXPIRE, USER_PROP_FLAGS, 310 },
{ "deletion_date", USER_PROP_DELDATE, JSPROP_ENUMERATE | JSPROP_READONLY, 32002 },
{0} {0}
}; };
...@@ -945,6 +950,7 @@ static const char* user_security_prop_desc[] = { ...@@ -945,6 +950,7 @@ static const char* user_security_prop_desc[] = {
, "Extra minutes (time bank)" , "Extra minutes (time bank)"
, "Extra minutes (for today only)" , "Extra minutes (for today only)"
, "Expiration date/time (time_t format)" , "Expiration date/time (time_t format)"
, "Deletion date/time (time_t format) - <small>READ ONLY</small>"
, NULL , NULL
}; };
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment