Require login for group creation
This commit is contained in:
parent
01915e6df9
commit
75f8fd7b7b
1 changed files with 2 additions and 0 deletions
|
@ -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 can’t create projects for other users"
|
||||
(RepoNewR user , _) ->
|
||||
|
|
Loading…
Reference in a new issue