First version of the Users view (read only)
This commit is contained in:
@@ -60,13 +60,6 @@ User::getById(Wt::Dbo::Session& session, id_type id)
|
||||
return session.find<User>().where("id = ?").bind( id );
|
||||
}
|
||||
|
||||
std::string
|
||||
User::getId( pointer user)
|
||||
{
|
||||
std::ostringstream oss; oss << user.id();
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
void
|
||||
User::setAudioBitrate(std::size_t bitrate)
|
||||
{
|
||||
|
||||
@@ -61,7 +61,6 @@ class User
|
||||
// accessors
|
||||
static pointer getById(Wt::Dbo::Session& session, id_type id);
|
||||
static std::vector<pointer> getAll(Wt::Dbo::Session& session);
|
||||
static std::string getId(pointer user);
|
||||
|
||||
// write
|
||||
void setAdmin(bool admin) { _isAdmin = admin; }
|
||||
|
||||
Reference in New Issue
Block a user