Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

error on CHECK_OCCURRENCE_PERM_FUNC(occurrence, user) #523

Open
typonaut opened this issue Dec 31, 2021 · 0 comments
Open

error on CHECK_OCCURRENCE_PERM_FUNC(occurrence, user) #523

typonaut opened this issue Dec 31, 2021 · 0 comments

Comments

@typonaut
Copy link

When using the supplied sample project I can create new events, but attempting to edit or delete occurrences results in the following error:

'NoneType' object has no attribute 'event'

Which, it turns out is true:

check_occurrence_permission
    return CHECK_EVENT_PERM_FUNC(ob.event, user)

Exception Type: AttributeError at /schedule/occurrence/cancel/10/2022/01/06/09/57/00/
Exception Value: 'NoneType' object has no attribute 'event'
                  
Variable | Value
-- | --
ob | None
user | <SimpleLazyObject: <User: typonaut>>

How to deal with this issue, given that the occurrence object returned is a None?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant