ProductOpener::Permissions - defines user permissions and provide a has_permission function to check them
Check if the user is an admin or moderator.
Check if the user has permission to revert a product.
True for moderators, admins, and logged in users of the pro platform.
Check if the user has a specific permission.
Reference to the request object.
Permission to check.
1 if the user has the permission, 0 otherwise.