Copied redmine permissions module
Added support for git permissions management (needs test)