able to restrict the access for editing the community when users type the URL(fixes #3588)

able to restrict the access for editing the community when users type the URL(fixes #3588)