update backend default permissions to non-OwnProfile
This commit is contained in:
parent
c73f94bcd9
commit
59205df9d9
|
@ -214,7 +214,9 @@ instance MonadRandom APIM where
|
||||||
|
|
||||||
instance MonadPermissions APIM where
|
instance MonadPermissions APIM where
|
||||||
currentPermissions = asks statePermissions
|
currentPermissions = asks statePermissions
|
||||||
defaultPermissions = pure $ Permissions $ fromList [(OwnProfile, ReadWrite)]
|
defaultPermissions =
|
||||||
|
maybe mempty (\user -> Permissions $ fromList [(Profile user, ReadWrite)]) <$>
|
||||||
|
asks stateCurrentUser
|
||||||
|
|
||||||
runAPIM :: Config -> APIM a -> IO a
|
runAPIM :: Config -> APIM a -> IO a
|
||||||
runAPIM config (APIM m) = runReaderT m RequestState
|
runAPIM config (APIM m) = runReaderT m RequestState
|
||||||
|
|
Loading…
Reference in New Issue