class SpacePolicy < ApplicationPolicy def create? user.is_admin? end def update? user.is_admin? end def destroy? user.is_admin? and record.destroyable? end end