corrected jouler service
added permission check
merge from anudipa.