Fixed bug that displayed all datasets when clicking on "Clear From" button

Now checks for the permission.