2018-11-03 17:12:20 +01:00
|
|
|
#ifndef PERMISSIONSDAO_H
|
|
|
|
#define PERMISSIONSDAO_H
|
|
|
|
#include "../permissions.h"
|
|
|
|
#include "../user.h"
|
|
|
|
class PermissionsDao
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PermissionsDao();
|
2019-05-03 16:00:36 +02:00
|
|
|
virtual std::optional<Permissions> find(std::string pagename, std::string username) = 0;
|
2021-10-05 21:51:31 +02:00
|
|
|
virtual void save(std::string pagename, std::string username, Permissions perms) = 0;
|
2018-11-03 17:12:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PERMISSIONSDAO_H
|