From a8cb81598bf5cf48b72a4ee7c8a574a6ad75b3e4 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 21 Aug 2021 16:38:06 +0200 Subject: [PATCH] The User now inherits from Resource. --- modules/users/user.cpp | 2 +- modules/users/user.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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;