diff --git a/ckeditor.module b/ckeditor.module
index 9e2be84..3c6d04f 100644
--- a/ckeditor.module
+++ b/ckeditor.module
@@ -299,7 +299,7 @@ function ckeditor_pre_render_text_format($element) {
 /**
  * Load all profiles. Just load one profile if $name is passed in.
  */
-function ckeditor_profile_load($name = '', $clear = FALSE) {
+function ckeditor_profile_load($name = '', $clear = FALSE, $check_access = TRUE) {
   static $profiles = array();
   global $user;
 
@@ -311,7 +311,12 @@ function ckeditor_profile_load($name = '', $clear = FALSE) {
 
       $profiles[$data->name] = $data;
     }
-    $input_formats = filter_formats($user);
+    if ($check_access === FALSE) {
+      // don't check if user has access to filter formats, needed for exporting as feature with drush
+      $input_formats = filter_formats();
+    } else {
+      $input_formats = filter_formats($user);
+    }
     $result = db_select('ckeditor_input_format', 'f')->fields('f')->execute();
     foreach ($result as $data) {
       if (isset($input_formats[$data->format])) {
diff --git a/includes/ckeditor.features.inc b/includes/ckeditor.features.inc
index 7d7136d..c68c5a9 100644
--- a/includes/ckeditor.features.inc
+++ b/includes/ckeditor.features.inc
@@ -73,7 +73,7 @@ function ckeditor_profile_features_export_render($module_name, $data) {
   $profiles = array();
   $roles = user_roles();
   foreach ($data as $name) {
-    $profile = (array) ckeditor_profile_load($name);
+    $profile = (array) ckeditor_profile_load($name, TRUE, FALSE);
 
     $profiles[$name] = $profile;
   }
