close fullscreen

Recently, a colleague and I wanted to make the default card permission grant read access to authenticated users. Instead of looking up permissions, we spent some interesting time in the code, writing tests, etc.

 

We created a script which you can run from script/console to automatically change the default card read permission. Idiomatic wagn would have been:

 

/*Card.find_by_name("Basic+*tform").permit(:read, Role[:auth])*/

 

Here's our actual script on gist.

 

 

 

Setting Default Permissions+archive
more_horiz
open_in_full page
fullscreen modal
edit create
space_dashboard advanced