8 lines
145 B
Python
8 lines
145 B
Python
import rules
|
|
|
|
@rules.predicate
|
|
def is_job_poster(user, job):
|
|
return job.posted_by == user
|
|
|
|
|
|
rules.add_perm('jobs.change_job', is_job_poster)
|