The User now inherits from Resource.

This commit is contained in:
Relintai 2021-08-21 16:38:06 +02:00
parent c372eaa8cf
commit a8cb81598b
2 changed files with 4 additions and 4 deletions

View File

@ -628,7 +628,7 @@ void User::create_validators() {
} }
User::User() : User::User() :
Object() { Resource() {
id = 0; id = 0;
rank = 0; rank = 0;

View File

@ -1,7 +1,7 @@
#ifndef USER_H #ifndef USER_H
#define USER_H #define USER_H
#include "core/object.h" #include "core/resource.h"
#include <string> #include <string>
#include <vector> #include <vector>
@ -10,8 +10,8 @@
class Request; class Request;
class FormValidator; class FormValidator;
class User : public Object { class User : public Resource {
RCPP_OBJECT(User, Object); RCPP_OBJECT(User, Resource);
public: public:
int id; int id;