Sha256: d27371361107ebc36adb7c972b23740b270827c5c3100339bba62642c29038af
Contents?: true
Size: 246 Bytes
Versions: 34
Compression:
Stored size: 246 Bytes
Contents
module Hydra::SuperuserAttributes def can_be_superuser? Superuser.find_by_user_id(self.id) ? true : false end def is_being_superuser?(session=nil) return false if session.nil? session[:superuser_mode] ? true : false end end
Version data entries
34 entries across 34 versions & 1 rubygems