Require login for group creation

This commit is contained in:
fr33domlover 2016-05-25 06:58:09 +00:00
parent 01915e6df9
commit 75f8fd7b7b

View file

@ -117,6 +117,8 @@ instance Yesod App where
-- Who can access which pages.
isAuthorized r w = case (r, w) of
(GroupsR , True) -> loggedIn
(GroupNewR , _) -> loggedIn
(ProjectNewR user , _) ->
loggedInAs user "You cant create projects for other users"
(RepoNewR user , _) ->