MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / _assert_permission

Method _assert_permission

scratchattach/site/user.py:178–181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 return True
177
178 def _assert_permission(self):
179 self._assert_auth()
180 if self._session.username != self.username:
181 raise exceptions.Unauthorized("You need to be authenticated as the profile owner to do this.")
182
183 @property
184 def url(self):

Callers 5

toggle_commentingMethod · 0.95
viewed_projectsMethod · 0.95
set_featuredMethod · 0.95
set_forum_signatureMethod · 0.95
delete_commentMethod · 0.95

Calls 1

_assert_authMethod · 0.45

Tested by

no test coverage detected