Class: BasePolicy

Inherits:
DeclarativePolicy::Base show all
Defined in:
app/policies/base_policy.rb

Direct Known Subclasses

AlertManagement::AlertPolicy, AlertManagement::HttpIntegrationPolicy, ApplicationSetting::TermPolicy, AwardEmojiPolicy, BlobPolicy, BoardPolicy, Ci::FreezePeriodPolicy, Ci::PipelinePolicy, Ci::RunnerPolicy, Ci::TriggerPolicy, Clusters::ClusterPolicy, Clusters::InstancePolicy, CommitPolicy, CommitStatusPolicy, ContainerExpirationPolicyPolicy, ContainerRegistry::TagPolicy, ContainerRepositoryPolicy, CustomEmojiPolicy, DeployKeyPolicy, DeployKeysProjectPolicy, DeployTokenPolicy, DeploymentPolicy, DesignManagement::DesignAtVersionPolicy, DesignManagement::DesignPolicy, DesignManagement::VersionPolicy, DraftNotePolicy, EnvironmentPolicy, ErrorTracking::BasePolicy, ExternalIssuePolicy, GlobalPolicy, GrafanaIntegrationPolicy, GroupDeployKeyPolicy, GroupDeployKeysGroupPolicy, GroupLabelPolicy, GroupMemberPolicy, GroupPolicy, IdentityProviderPolicy, InstanceMetadataPolicy, IssuablePolicy, Metrics::Dashboard::AnnotationPolicy, MilestonePolicy, Namespace::RootStorageStatisticsPolicy, NamespacePolicy, NilPolicy, NotePolicy, Operations::FeatureFlagPolicy, Packages::PackagePolicy, PersonalAccessTokenPolicy, PersonalSnippetPolicy, ProjectLabelPolicy, ProjectMemberPolicy, ProjectPolicy, ProjectSnippetPolicy, ProjectStatisticsPolicy, PrometheusAlertPolicy, ProtectedBranchPolicy, ReleasePolicy, Releases::EvidencePolicy, Releases::LinkPolicy, Releases::SourcePolicy, RepositoryPolicy, ResourceLabelEventPolicy, ServicePolicy, SuggestionPolicy, Terraform::StatePolicy, Terraform::StateVersionPolicy, TodoPolicy, UserPolicy, WikiPage::MetaPolicy, WikiPagePolicy, WikiPolicy

Instance Attribute Summary

Attributes inherited from DeclarativePolicy::Base

#subject, #user

Method Summary

Methods inherited from DeclarativePolicy::Base

ability_map, #allowed?, #banned?, #cache, #cached?, #can?, #condition, condition, conditions, configuration_for, #debug, delegate, #delegated_policies, delegations, desc, #disallowed?, enable_when, global_actions, #initialize, #inspect, last_options, last_options!, overrides, own_ability_map, own_conditions, own_delegations, own_global_actions, #policy_for, prevent_all_when, prevent_when, #repr, rule, #runner, with_options, with_scope, with_score

Constructor Details

This class inherits a constructor from DeclarativePolicy::Base