implement ds fedora check perm

If we care about coding standards, there should be a space after the `if` (before the parenthesis).