WIP. Added the user table view
This commit is contained in:
@@ -14,6 +14,12 @@ _videoBitrate(defaultVideoBitrate)
|
||||
|
||||
}
|
||||
|
||||
std::vector<User::pointer>
|
||||
User::getAll(Wt::Dbo::Session& session)
|
||||
{
|
||||
Wt::Dbo::collection<pointer> res = session.find<User>();
|
||||
return std::vector<pointer>(res.begin(), res.end());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@ class User {
|
||||
|
||||
typedef Wt::Dbo::ptr<User> pointer;
|
||||
|
||||
// accessors
|
||||
static std::vector<pointer> getAll(Wt::Dbo::Session& session);
|
||||
|
||||
bool isAdmin() const {return _isAdmin;}
|
||||
|
||||
template<class Action>
|
||||
|
||||
Reference in New Issue
Block a user