app/roles/authority.rb
def repository_readers
    keys = Key.joins({user: :users_projects}).
      where("users_projects.project_id = ? AND users_projects.project_access = ?", id, UsersProject::REPORTER)
    keys.map(&:identifier) + deploy_keys.map(&:identifier)
  end
# Compatible with all access rights
# Should be rewrited for new access rights
Compatible with all access rights
Should be rewrited for new access rights
Compatible with all access rights Should be rewrited for new access rights
def repository_readers
    keys = Key.joins({user: :users_projects}).
      where("users_projects.project_id = ? AND users_projects.project_access = ?", id, UsersProject::REPORTER)
    keys.map(&:identifier) + deploy_keys.map(&:identifier)
  end
def repository_readers keys = Key . joins ( { user : :users_projects } ) . where ( "users_projects.project_id = ? AND users_projects.project_access = ?" , id , UsersProject :: REPORTER ) keys . map ( & :identifier ) + deploy_keys . map ( & :identifier ) end
Compatible with all access rights
Should be rewrited for new access rights
Compatible with all access rights Should be rewrited for new access rights