fixing backend stuff
This commit is contained in:
parent
282dd1478f
commit
d6a2ffc52c
4 changed files with 4 additions and 1 deletions
|
@ -72,6 +72,7 @@ postAdminMediumSettingsR mediumId = do
|
||||||
[ MediumTitle =. mediumTitle temp
|
[ MediumTitle =. mediumTitle temp
|
||||||
, MediumDescription =. mediumDescription temp
|
, MediumDescription =. mediumDescription temp
|
||||||
, MediumTags =. mediumTags temp
|
, MediumTags =. mediumTags temp
|
||||||
|
, MediumLicence =. mediumLicence temp
|
||||||
]
|
]
|
||||||
setMessage "Medium settings changed successfully"
|
setMessage "Medium settings changed successfully"
|
||||||
redirect AdminR
|
redirect AdminR
|
||||||
|
|
|
@ -116,6 +116,7 @@ postAdminProfileSettingsR ownerId = do
|
||||||
, UserSlug =. userSlug temp
|
, UserSlug =. userSlug temp
|
||||||
, UserEmail =. userEmail temp
|
, UserEmail =. userEmail temp
|
||||||
, UserAdmin =. userAdmin temp
|
, UserAdmin =. userAdmin temp
|
||||||
|
, UserDefaultLicence =. userDefaultLicence temp
|
||||||
]
|
]
|
||||||
setMessage "User data updated successfully"
|
setMessage "User data updated successfully"
|
||||||
redirect AdminR
|
redirect AdminR
|
||||||
|
|
|
@ -47,6 +47,7 @@ postProfileSettingsR userId = do
|
||||||
UserName =. userName temp
|
UserName =. userName temp
|
||||||
, UserSlug =. userSlug temp
|
, UserSlug =. userSlug temp
|
||||||
, UserEmail =. userEmail temp
|
, UserEmail =. userEmail temp
|
||||||
|
, UserDefaultLicence =. (userDefaultLicence temp)
|
||||||
]
|
]
|
||||||
setMessage "Profile settings changed successfully"
|
setMessage "Profile settings changed successfully"
|
||||||
redirect $ UserR $ userName user
|
redirect $ UserR $ userName user
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
Licence:
|
Licence:
|
||||||
<p>
|
<p>
|
||||||
$maybe thing <- link
|
$maybe thing <- link
|
||||||
<a href=#{thing}>#{lic}
|
<a href=#{thing} target="_blank">#{lic}
|
||||||
$nothing
|
$nothing
|
||||||
#{lic}
|
#{lic}
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in a new issue