lib/ims/lti/role_checks.rb
# Convenience method for checking if the user is the system administrator of the TC
Convenience method for checking if the user is the system administrator of the TC
Convenience method for checking if the user is the system administrator of the TC
def system_administrator?
      has_exact_role?('urn:lti:sysrole:ims/lis/SysAdmin') ||
              has_exact_role?('SysAdmin') ||
              has_exact_role?('urn:lti:sysrole:ims/lis/Administrator')
    end
def system_administrator? has_exact_role? ( 'urn:lti:sysrole:ims/lis/SysAdmin' ) || has_exact_role? ( 'SysAdmin' ) || has_exact_role? ( 'urn:lti:sysrole:ims/lis/Administrator' ) end
Convenience method for checking if the user is the system administrator of the TC
Convenience method for checking if the user is the system administrator of the TC