Revision 855d34f9 include/Nebula.h

View differences:

include/Nebula.h
320 320

  
321 321
    int set_default_user_quota(Template *tmpl, string& error)
322 322
    {
323
        return default_user_quota.set(tmpl, error);
323
        int rc;
324
        rc = default_user_quota.set(tmpl, error);
325

  
326
        if ( rc == 0 )
327
        {
328
            rc = default_user_quota.update(db);
329
        }
330

  
331
        return rc;
324 332
    };
325 333

  
326 334
    const DefaultQuotas& get_default_group_quota()
......
330 338

  
331 339
    int set_default_group_quota(Template *tmpl, string& error)
332 340
    {
333
        return default_group_quota.set(tmpl, error);
341
        int rc;
342
        rc = default_group_quota.set(tmpl, error);
343

  
344
        if ( rc == 0 )
345
        {
346
            rc = default_group_quota.update(db);
347
        }
348

  
349
        return rc;
334 350
    };
335 351

  
336 352
private:

Also available in: Unified diff