We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1daad17 commit 5329594Copy full SHA for 5329594
src/Distribution/Server/Features/UserDetails.hs
@@ -330,6 +330,7 @@ userDetailsFeature templates userDetailsState UserFeature{..} CoreFeature{..} Up
330
handlerGetUserNameContactHtml :: DynamicPath -> ServerPartE Response
331
handlerGetUserNameContactHtml dpath = do
332
(uid, uinfo) <- lookupUserNameFull =<< userNameInPath dpath
333
+ guardAuthorised_ [IsUserId uid, InGroup adminGroup]
334
template <- getTemplate templates "user-details-form.html"
335
udetails <- queryUserDetails uid
336
showConfirmationOfSave <- not . null <$> queryString (lookBSs "showConfirmationOfSave")
0 commit comments