Commit Graph

3 Commits

Author SHA1 Message Date
Cody Cutrer 06763dd519 add # frozen_string_literal: true for lib
Change-Id: I59b751cac52367a89e03f572477f0cf1d607b405
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251155
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2020-10-27 20:49:50 +00:00
Landon Wilkins 966f0c6ffb da licença part 33
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: Ifeefd2dff9d8d03383120b340a3fc2c9e0534a5b
Reviewed-on: https://gerrit.instructure.com/110059
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-27 22:00:04 +00:00
Jacob Fugal 8a974b5a61 allow registering new permissions in plugins
break out lib/permissions.rb for registering/listing permissions, so
that plugins can register them too without requiring all of
RoleOverride.  also, enhance AdheresToPolicy to allow multiple
set_policy blocks for one class, so that plugins can define additional
policies on classes that already have some from stock canvas-lms.

test-plan:
  * run specs in vendor/plugins/adheres_to_policy to ensure it didn't
    break
  * add a permission from a plugin, load the account permissions page,
    see the new permission
  * add a policy to an existing class from a plugin and add a view
    controlled by that policy.
    - existing views controlled by existing policies should behave as
      before
    - new view should be properly controlled by new policy

Change-Id: I9426c2eff37642a7ae01ada869b7c59e7ac178a1
Reviewed-on: https://gerrit.instructure.com/9111
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
2012-03-02 09:38:06 -07:00