canvas-lms/gems/adheres_to_policy
Rob Orton e430f35de0 stop logging stats in adheres_to_policy
refs CORE-2538

test plan
 - specs should pass

Change-Id: I09ffd6982be803294b7d70c1e485d999a01352ea
Reviewed-on: https://gerrit.instructure.com/186260
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2019-03-21 16:29:16 +00:00
..
lib stop logging stats in adheres_to_policy 2019-03-21 16:29:16 +00:00
spec Add a flag to completely disable caching of permissions 2017-07-18 12:41:34 +00:00
.rspec
Gemfile bump simplecov, fixes SD-2056 2017-04-04 18:06:25 +00:00
README.md da licença part 53 2017-05-01 21:06:11 +00:00
Rakefile
adheres_to_policy.gemspec stop logging stats in adheres_to_policy 2019-03-21 16:29:16 +00:00
test.sh simplify gem test harnesses 2016-01-19 17:52:58 +00:00

README.md

AdheresToPolicy

This allows us to do something like:

class Account < ActiveRecord::Base set_policy do given { |u| self.user == u } can :read and can :write end end

u = User.first a = Account.first a.check_policy(u)

License

Copyright (C) 2014 - present Instructure, Inc.

This file is part of Canvas.

Canvas is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.

Canvas is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.