Skip to content
Snippets Groups Projects
Commit be18397d authored by Cyril's avatar Cyril
Browse files

rename ProjectController to ProjectResourceController

parent 933c5e41
No related branches found
No related tags found
1 merge request!1569Simplify controllers and layout handling
Showing
with 20 additions and 20 deletions
# Controller for viewing a file's blame
class BlameController < ProjectController
class BlameController < ProjectResourceController
include ExtractsPath
 
# Authorize
Loading
Loading
# Controller for viewing a file's blame
class BlobController < ProjectController
class BlobController < ProjectResourceController
include ExtractsPath
include Gitlab::Encode
 
Loading
Loading
# Controller for a specific Commit
#
# Not to be confused with CommitsController, plural.
class CommitController < ProjectController
class CommitController < ProjectResourceController
# Authorize
before_filter :authorize_read_project!
before_filter :authorize_code_access!
Loading
Loading
require "base64"
 
class CommitsController < ProjectController
class CommitsController < ProjectResourceController
include ExtractsPath
 
# Authorize
Loading
Loading
class CompareController < ProjectController
class CompareController < ProjectResourceController
# Authorize
before_filter :authorize_read_project!
before_filter :authorize_code_access!
Loading
Loading
class DeployKeysController < ProjectController
class DeployKeysController < ProjectResourceController
respond_to :html
 
# Authorize
Loading
Loading
class HooksController < ProjectController
class HooksController < ProjectResourceController
# Authorize
before_filter :authorize_read_project!
before_filter :authorize_admin_project!, only: [:new, :create, :destroy]
Loading
Loading
class IssuesController < ProjectController
class IssuesController < ProjectResourceController
before_filter :module_enabled
before_filter :issue, only: [:edit, :update, :destroy, :show]
helper_method :issues_filter
Loading
Loading
class LabelsController < ProjectController
class LabelsController < ProjectResourceController
before_filter :module_enabled
 
# Allow read any issue
Loading
Loading
class MergeRequestsController < ProjectController
class MergeRequestsController < ProjectResourceController
before_filter :module_enabled
before_filter :merge_request, only: [:edit, :update, :destroy, :show, :commits, :diffs, :automerge, :automerge_check, :raw]
before_filter :validates_merge_request, only: [:show, :diffs, :raw]
Loading
Loading
class MilestonesController < ProjectController
class MilestonesController < ProjectResourceController
before_filter :module_enabled
before_filter :milestone, only: [:edit, :update, :destroy, :show]
 
Loading
Loading
class NotesController < ProjectController
class NotesController < ProjectResourceController
# Authorize
before_filter :authorize_read_note!
before_filter :authorize_write_note!, only: [:create]
Loading
Loading
class ProjectController < ApplicationController
class ProjectResourceController < ApplicationController
before_filter :project
# Authorize
before_filter :add_project_abilities
Loading
Loading
require Rails.root.join('lib', 'gitlab', 'graph_commit')
 
class ProjectsController < ProjectController
class ProjectsController < ProjectResourceController
skip_before_filter :project, only: [:new, :create]
 
# Authorize
Loading
Loading
class ProtectedBranchesController < ProjectController
class ProtectedBranchesController < ProjectResourceController
# Authorize
before_filter :authorize_read_project!
before_filter :require_non_empty_project
Loading
Loading
class RefsController < ProjectController
class RefsController < ProjectResourceController
include Gitlab::Encode
 
# Authorize
Loading
Loading
class RepositoriesController < ProjectController
class RepositoriesController < ProjectResourceController
# Authorize
before_filter :authorize_read_project!
before_filter :authorize_code_access!
Loading
Loading
class SnippetsController < ProjectController
class SnippetsController < ProjectResourceController
before_filter :snippet, only: [:show, :edit, :destroy, :update, :raw]
 
# Allow read any snippet
Loading
Loading
class TeamMembersController < ProjectController
class TeamMembersController < ProjectResourceController
# Authorize
before_filter :authorize_read_project!
before_filter :authorize_admin_project!, except: [:index, :show]
Loading
Loading
# Controller for viewing a repository's file structure
class TreeController < ProjectController
class TreeController < ProjectResourceController
include ExtractsPath
 
# Authorize
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment