mirror of
https://code.naskya.net/repos/ndqEd
synced 2025-01-10 16:46:46 +09:00
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.
|
-- Who can access which pages.
|
||||||
isAuthorized r w = case (r, w) of
|
isAuthorized r w = case (r, w) of
|
||||||
|
(GroupsR , True) -> loggedIn
|
||||||
|
(GroupNewR , _) -> loggedIn
|
||||||
(ProjectNewR user , _) ->
|
(ProjectNewR user , _) ->
|
||||||
loggedInAs user "You can’t create projects for other users"
|
loggedInAs user "You can’t create projects for other users"
|
||||||
(RepoNewR user , _) ->
|
(RepoNewR user , _) ->
|
||||||
|
|
Loading…
Reference in a new issue