Sha256: 132012aadcbb2972c7d61dd681858ee11d34061fe4047532b5d88de49a82c66f

Contents?: true

Size: 266 Bytes

Versions: 5

Compression:

Stored size: 266 Bytes

Contents

### context_roles.rb
#
# Defines the context roles for the CBAC system
#
include Cbac

# Defining context roles
ContextRole.add :everybody, 'true'
ContextRole.add :not_logged_in_user, 'current_user.to_i == 0'
ContextRole.add :logged_in_user, 'current_user.to_i > 0'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cbac-0.5.4 generators/cbac/templates/config/context_roles.rb
cbac-0.5.3 generators/cbac/templates/config/context_roles.rb
cbac-0.5.2 generators/cbac/templates/config/context_roles.rb
cbac-0.5.1 generators/cbac/templates/config/context_roles.rb
cbac-0.3.1 generators/cbac/templates/config/context_roles.rb