diff --git a/modules/users/user.cpp b/modules/users/user.cpp index deff91e..5e61288 100644 --- a/modules/users/user.cpp +++ b/modules/users/user.cpp @@ -628,7 +628,7 @@ void User::create_validators() { } User::User() : - Object() { + Resource() { id = 0; rank = 0; diff --git a/modules/users/user.h b/modules/users/user.h index 9b478c1..25e07ce 100644 --- a/modules/users/user.h +++ b/modules/users/user.h @@ -1,7 +1,7 @@ #ifndef USER_H #define USER_H -#include "core/object.h" +#include "core/resource.h" #include #include @@ -10,8 +10,8 @@ class Request; class FormValidator; -class User : public Object { - RCPP_OBJECT(User, Object); +class User : public Resource { + RCPP_OBJECT(User, Resource); public: int id;