add methods to store users::lice_vers and renamed store_set to prefs_store to be...
[brisk.git] / web / Obj / user.phh
index 8ae6b32..6235759 100644 (file)
@@ -316,7 +316,7 @@ class User {
       $this->flags = ($flags_old | ($flags & $mask));
   }
 
-  function store_set()
+  function prefs_store()
   {
       if (($bdb = BriskDB::create()) == FALSE) {
           return FALSE;
@@ -325,6 +325,14 @@ class User {
                                       $this->rec->supp_comp_get()));
   }
 
+  function licence_store()
+  {
+      if (($bdb = BriskDB::create()) == FALSE) {
+          return FALSE;
+      }
+      return ($bdb->user_licence_update($this->code, $this->rec->lice_vers_get()));
+  }
+
   function rd_data_set($curtime, $transp, $enc, $stat, $subst, $step, $from)
   {
       $this->rd_endtime = $curtime + RD_ENDTIME_DELTA;