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

update new controllers

parent e563e948
No related branches found
No related tags found
No related merge requests found
# Controller for viewing a file's blame # Controller for viewing a file's blame
class BlameController < ApplicationController class BlameController < ProjectController
include ExtractsPath include ExtractsPath
   
layout "project"
before_filter :project
# Authorize # Authorize
before_filter :add_project_abilities
before_filter :authorize_read_project! before_filter :authorize_read_project!
before_filter :authorize_code_access! before_filter :authorize_code_access!
before_filter :require_non_empty_project before_filter :require_non_empty_project
Loading
Loading
# Controller for viewing a file's blame # Controller for viewing a file's blame
class BlobController < ApplicationController class BlobController < ProjectController
include ExtractsPath include ExtractsPath
include Gitlab::Encode include Gitlab::Encode
   
layout "project"
before_filter :project
# Authorize # Authorize
before_filter :add_project_abilities
before_filter :authorize_read_project! before_filter :authorize_read_project!
before_filter :authorize_code_access! before_filter :authorize_code_access!
before_filter :require_non_empty_project before_filter :require_non_empty_project
Loading
Loading
# Controller for a specific Commit # Controller for a specific Commit
# #
# Not to be confused with CommitsController, plural. # Not to be confused with CommitsController, plural.
class CommitController < ApplicationController class CommitController < ProjectController
before_filter :project
layout "project"
# Authorize # Authorize
before_filter :add_project_abilities
before_filter :authorize_read_project! before_filter :authorize_read_project!
before_filter :authorize_code_access! before_filter :authorize_code_access!
before_filter :require_non_empty_project before_filter :require_non_empty_project
Loading
Loading
class CompareController < ApplicationController class CompareController < ProjectController
before_filter :project
layout "project"
# Authorize # Authorize
before_filter :add_project_abilities
before_filter :authorize_read_project! before_filter :authorize_read_project!
before_filter :authorize_code_access! before_filter :authorize_code_access!
before_filter :require_non_empty_project before_filter :require_non_empty_project
Loading
Loading
# Controller for viewing a repository's file structure # Controller for viewing a repository's file structure
class TreeController < ApplicationController class TreeController < ProjectController
include ExtractsPath include ExtractsPath
   
layout "project"
before_filter :project
# Authorize # Authorize
before_filter :add_project_abilities
before_filter :authorize_read_project! before_filter :authorize_read_project!
before_filter :authorize_code_access! before_filter :authorize_code_access!
before_filter :require_non_empty_project before_filter :require_non_empty_project
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