Class: Integral::VersionPolicy

Inherits:
BasePolicy show all
Defined in:
app/policies/integral/version_policy.rb

Overview

Handles Activity authorization

Instance Attribute Summary

Attributes inherited from BasePolicy

#instance, #user

Instance Method Summary collapse

Methods inherited from BasePolicy

#initialize, #permitted_attribute?, #permitted_attributes, #unpermitted_attribute?

Constructor Details

This class inherits a constructor from Integral::BasePolicy

Instance Method Details

#manager?Boolean Also known as: activity?, activities?

Returns:

  • (Boolean)


4
5
6
# File 'app/policies/integral/version_policy.rb', line 4

def manager?
  user.admin?
end