Sha256: 325ba7a4ba0884951ea9064bd3a2ff1c1170530027087bd1c99a819173812137
Contents?: true
Size: 461 Bytes
Versions: 18
Compression:
Stored size: 461 Bytes
Contents
module TokenAuthenticateMe class InvitePolicy < ApplicationPolicy def create? record.owner_id == current_user.id || super end def show? true end def update? create? end def destroy? record.owner_id == current_user.id || super end def accept? current_user end def decline? current_user end def permitted_attributes [:email, :accepted, :meta] end end end
Version data entries
18 entries across 18 versions & 1 rubygems