fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update translation
[redakcja.git]
/
apps
/
catalogue
/
models
/
document.py
diff --git
a/apps/catalogue/models/document.py
b/apps/catalogue/models/document.py
index
21eb777
..
ef5a5cc
100755
(executable)
--- a/
apps/catalogue/models/document.py
+++ b/
apps/catalogue/models/document.py
@@
-73,6
+73,8
@@
class Document(Ref):
return metadata
def can_edit(self, user):
+ if user.is_superuser:
+ return True
if self.owner_user:
return self.owner_user == user
else: