Title: [Plugin: Code Snippets] Can&#039;t add new
Last modified: August 20, 2016

---

# [Plugin: Code Snippets] Can't add new

 *  Resolved [another-webmaster](https://wordpress.org/support/users/another-webmaster/)
 * (@another-webmaster)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-code-snippets-cant-add-new/)
 * Do I have to cmod some file or folder because of following msg after clicking“
   Add new” ?
 * > You do not have sufficient permissions to access this page
 * [http://wordpress.org/extend/plugins/code-snippets/](http://wordpress.org/extend/plugins/code-snippets/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-code-snippets-cant-add-new/#post-2838407)
 * No, that problem would have nothing to do with cmod-ing anything. You are most
   likely trying at access a page that doesn’t exist or you are not logged in as
   an administrator. Can you tell me which link you clicked and where the link was?
   Also check that you were logged in as an administrator account.
 *  Thread Starter [another-webmaster](https://wordpress.org/support/users/another-webmaster/)
 * (@another-webmaster)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-code-snippets-cant-add-new/#post-2838420)
 * Hi Shea
 * I found the reason for the problem.
    Having following in wp-config.php which 
   is/was the reason for the error. `define('DISALLOW_FILE_EDIT',true);` As long
   it has “false” in wp-config it allows me to edit..ugh…so I add new snippets and
   afterwards I changed it in “true” and all works like a charm. (not the best soltuion
   but works)
 *  Thread Starter [another-webmaster](https://wordpress.org/support/users/another-webmaster/)
 * (@another-webmaster)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-code-snippets-cant-add-new/#post-2838427)
 * Little note to above:
    Found this after having the error above: [please read.](http://wordpress.org/support/topic/plugin-quick-cache-a-wp-super-cache-alternative-definedisallow_file_edit-true-kills-the-plugin?replies=12)
   As they mentioned to solve a same kind off problem with Quick Cache, I also modified
   the file: code-snippets.php line 114 (edit_plugins into add_users)and now it 
   is fine even with settings on true in wp-config. My question to you Shea, can/
   does this interfere/harm or is this the solution as it also? If so, please update
   your amasing nice plugin so otheres won’t have a same issue as I had.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-code-snippets-cant-add-new/#post-2838428)
 * Hi,
    Thanks for finding out the problem. I don’t have `DISALLOW_FILE_EDIT` set
   to true, so I didn’t know what was going wrong.
 * I will be releasing an updated version of the plugin that will address this bug
   and a few other small improvements.
 * You could, as you mentioned above, change the permission to add_users (which 
   is absolutely fine as they are both administrator roles), but the Code Snippets
   plugin has nothing to do with adding users, so a better role to change it to 
   would be install_plugins.
 * Now, my question to you is: If you don’t want users editing plugins, do you really
   want them adding snippets, which are essentially mini-plugins?
 *  Thread Starter [another-webmaster](https://wordpress.org/support/users/another-webmaster/)
 * (@another-webmaster)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-code-snippets-cant-add-new/#post-2838430)
 * [@shea](https://wordpress.org/support/users/shea/)
 * > Now, my question to you is: If you don’t want users editing plugins, do you
   > really want them adding snippets, which are essentially mini-plugins?
 * The snippets won’t be visible for our Editor and the authors (hiding it within
   a code also) I/we had all the collected code in the mu-folder but this way it’s
   much better to work with. (thats why I like your plugin)
 * > so a better role to change it to would be install_plugins
 *  So if I understand and read well, the better solution is to change edit_plugins
   into install_plugins.Will do now.
 * Thanks for your all your time and effort and last but not least for your great
   plugin!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Code Snippets] Can't add new’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [another-webmaster](https://wordpress.org/support/users/another-webmaster/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-code-snippets-cant-add-new/#post-2838430)
 * Status: resolved