This commit is contained in:
SJost 2018-06-27 09:03:59 +02:00
parent 90f2748829
commit 1379fffcd1
3 changed files with 6 additions and 6 deletions

2
models
View File

@ -1,4 +1,4 @@
User
\User
plugin Text
ident Text
matrikelnummer Text Maybe

8
routes
View File

@ -21,7 +21,7 @@
-- !isRead -- only if it is read-only access (i.e. GET but not POST)
-- !isWrite -- only if it is write access (i.e. POST only) why needed???
--
-- !deprecated -- like free, but logs and gives a warning
-- !deprecated -- like free, but logs and gives a warning; entirely disabled in production
--
/static StaticR Static appStatic !free
@ -30,9 +30,9 @@
/favicon.ico FaviconR GET !free
/robots.txt RobotsR GET !free
/ HomeR GET !free
/users UsersR GET -- no tags, i.e. admins only
/admin/test AdminTestR GET POST
/ HomeR GET !free
/users UsersR GET -- no tags, i.e. admins only
/admin/test AdminTestR GET POST !deprecated
/profile ProfileR GET POST !free !free
/profile/data ProfileDataR GET !free !free

View File

@ -58,8 +58,8 @@ getProfileR = do
, OffsetBy $ stgMaxFavourties
]
mapM_ delete oldFavs
addMessageI "info" $ MsgSettingsUpdate
(FormFailure msgs) -> forM_ msgs $ (addMessage "warning") . toHtml
_ -> return ()