ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
176 stars 7 forks source link

Demo user can only change blogpost, no need for deleting DB #98

Closed ThomasTJdev closed 5 years ago

ThomasTJdev commented 5 years ago

The demo user is only allowed to edit blog post, which is enforces with restrictTestuser(c.req.reqMethod) in the routes.nim.

Therefore this PR does only delete the specific changes, the demo user can cause.

juancarlospaco commented 5 years ago

is the PR missing commits of a file :grey_question: Wheres the proc standardDataBlogpost1 , standardDataBlogpost2 and standardDataBlogpost3 :grey_question: :thinking:

ThomasTJdev commented 5 years ago

They are hiding in create_standarddata.nim :)

https://github.com/ThomasTJdev/nim_websitecreator/blob/f307d28778fb90aa4799f048f268e3bf61a103f8/nimwcpkg/resources/administration/create_standarddata.nim#L546

https://github.com/ThomasTJdev/nim_websitecreator/blob/f307d28778fb90aa4799f048f268e3bf61a103f8/nimwcpkg/resources/administration/create_standarddata.nim#L556

https://github.com/ThomasTJdev/nim_websitecreator/blob/f307d28778fb90aa4799f048f268e3bf61a103f8/nimwcpkg/resources/administration/create_standarddata.nim#L566