Adding checkperm to jsonrest-api config