use resource in layer detail
change the permission form and the set permissions function