Project

General

Profile

Bug #8439

As a developer, I want to write code that views Katello objects as a different user than the current one

Added by Stephen Benjamin almost 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Roles and Permissions
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

For things like rendering mail templates, I want to make use of the new foreman authorized_as scope.

History

#1 Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 61
  • Pull request https://github.com/Katello/katello/pull/4824 added
  • Pull request deleted ()

#2 Updated by Stephen Benjamin almost 5 years ago

  • Status changed from Ready For Testing to New

I started to try to do this, but it's quite a jungle in the Authorization concerns, it would need to be made DRY to really do this effectively.

For now, you can call `authorized_as` or `user.can?` methods from Foreman

#3 Updated by Stephen Benjamin almost 5 years ago

#4 Updated by Eric Helms over 4 years ago

  • Target version changed from 61 to 62

#5 Updated by Eric Helms over 4 years ago

  • Triaged changed from No to Yes

#6 Updated by Eric Helms over 4 years ago

  • Target version changed from 62 to 63

#7 Updated by Eric Helms over 4 years ago

  • Target version changed from 63 to 66

#8 Updated by Eric Helms over 4 years ago

  • Target version deleted (66)

#9 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 114

#10 Updated by Stephen Benjamin almost 3 years ago

  • Tracker changed from Feature to Bug

#11 Updated by Stephen Benjamin almost 3 years ago

  • Assignee deleted (Stephen Benjamin)

#12 Updated by Stephen Benjamin almost 3 years ago

  • Blocked by deleted (Refactor #8449: Make authorization concerns DRY)

#13 Updated by Stephen Benjamin almost 3 years ago

  • Status changed from New to Closed

No longer needed, foreman provides User.as helpers

Also available in: Atom PDF