Extracts the permissions setting

Also add permissions setting after cache clearing
Merge branch 'master' of github.com:koninka/fefu-social-network