- args = {'type': type_db, 'slug_%s' % lang: slug, 'published_%s' % lang: True}
- # TODO: preview for admins
+ args = {'type': type_db, 'slug_%s' % lang: slug}
+ if not request.user.has_perm('migdal.change_entry'):
+ args['published_%s' % lang] = True