mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
The User now inherits from Resource.
This commit is contained in:
parent
c372eaa8cf
commit
a8cb81598b
@ -628,7 +628,7 @@ void User::create_validators() {
|
||||
}
|
||||
|
||||
User::User() :
|
||||
Object() {
|
||||
Resource() {
|
||||
|
||||
id = 0;
|
||||
rank = 0;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifndef USER_H
|
||||
#define USER_H
|
||||
|
||||
#include "core/object.h"
|
||||
#include "core/resource.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user