You are here

function ckeditor_perm in CKEditor - WYSIWYG HTML editor 6

Implementation of hook_perm(). Administer -> User management -> Permissions

File

./ckeditor.module, line 94
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function ckeditor_perm() {
  $arr = array(
    'administer ckeditor',
    'access ckeditor',
  );
  $ckfinder_full_path = ckfinder_path();
  $config_path = $ckfinder_full_path . '/config.php';
  if (file_exists($config_path)) {
    $arr[] = 'allow CKFinder file uploads';
  }
  return $arr;
}