Abilities refactoring
This commit is contained in:
parent
7a9fc48080
commit
ccc9bed893
7 changed files with 83 additions and 8 deletions
|
@ -3,6 +3,8 @@ class NotesController < ApplicationController
|
|||
|
||||
# Authorize
|
||||
before_filter :add_project_abilities
|
||||
|
||||
before_filter :authorize_read_note!
|
||||
before_filter :authorize_write_note!, :only => [:create]
|
||||
|
||||
respond_to :js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue