Use admin class function to check permissions.
Merge pull request #99 from benkonrath/admin_class_permissions

Use admin class function to check permissions.