Fixed small bugs, changed permission function - gallery ajaxpage
Merge branch 'master' of https://github.com/Panthera-Framework/panthera