getLoggedUserCopy() added
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / controller / UserController.java
index fe66292..97b5d13 100644 (file)
@@ -141,6 +141,11 @@ public class UserController {
                return currentUser.getLastname();\r
        }\r
        \r
+       public User getLoggedUserCopy() throws CloneNotSupportedException{\r
+               if(currentUser == null) return null;\r
+               return currentUser.clone();\r
+       }\r
+       \r
        /**\r
         * Returns all reservations overlapping the given dateRange in a List\r
         * \r