aboutsummaryrefslogtreecommitdiff
path: root/week13/Exercise3/UserModerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'week13/Exercise3/UserModerator.cpp')
-rw-r--r--week13/Exercise3/UserModerator.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/week13/Exercise3/UserModerator.cpp b/week13/Exercise3/UserModerator.cpp
new file mode 100644
index 0000000..51f10e4
--- /dev/null
+++ b/week13/Exercise3/UserModerator.cpp
@@ -0,0 +1,9 @@
+#include "UserModerator.h"
+
+void UserModerator::BanUser(User& user) {
+ user.banned = true;
+}
+
+void UserModerator::UnbanUser(User& user) {
+ user.banned = false;
+}