Admins can delete availabilities

https://trello.com/c/RvUY7aMh/14-as-an-admin-i-can-alter-only-my-own-availabilities
Exactly.

On Mon, Nov 24, 2014 at 5:14 PM, Nathan <notifications@github.com> wrote:

> In app/controllers/admin_controller.rb:
>
> > @@ -1,9 +1,16 @@
> >  class AdminController < ApplicationController
> >    before_filter :require_admin
> > +  before_filter :require_appropriate_admin
> >
> >    private
> >
> >    def require_admin
>
> Something like if !current_user.admin? --> redirect?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/NateJBeck/donations/pull/14/files#r20826929>.
>



-- 
Gabe Berke-Williams
http://gabebw.com/