ipv6-dot-work/jobs/rules.py

9 lines
145 B
Python
Raw Normal View History

import rules
@rules.predicate
def is_job_poster(user, job):
return job.posted_by == user
rules.add_perm('jobs.change_job', is_job_poster)