diff options
author | prashantsinalkar | 2020-06-15 16:07:27 +0530 |
---|---|---|
committer | prashantsinalkar | 2020-06-15 16:07:27 +0530 |
commit | ba7013f58b0d8348ae1502f0e45c646c9faa3470 (patch) | |
tree | 36055385e8004ab8b8db5a275fad775975e40316 | |
parent | abde0791d0f8af091a1b806cb0cdf1e7dfdc1a93 (diff) | |
download | Esim-Pspice-to-kicad-convertor-ba7013f58b0d8348ae1502f0e45c646c9faa3470.tar.gz Esim-Pspice-to-kicad-convertor-ba7013f58b0d8348ae1502f0e45c646c9faa3470.tar.bz2 Esim-Pspice-to-kicad-convertor-ba7013f58b0d8348ae1502f0e45c646c9faa3470.zip |
updated the delete permission
-rwxr-xr-x | pspice_to_kicad.module | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/pspice_to_kicad.module b/pspice_to_kicad.module index 6389719..7764cb9 100755 --- a/pspice_to_kicad.module +++ b/pspice_to_kicad.module @@ -1,22 +1,4 @@ <?php -function pspice_to_kicad_permission() -{ - return array( - "access pspice_to_kicad" => array( - "title" => t("Access pspice_to_kicad"), - "description" => t("Allows users to view converted."), - ), - "manage pspice_to_kicad" => array( - "title" => t("Upload pspice_to_kicad Files"), - "description" => t("Allows users to upload files for pspice to kicad convertor."), - ), - "convert pspice_to_kicad" => array( - "title" => t("Files to be converted"), - "description" => t("Allows admin to see files to be convert from pspice to kicad."), - ), - - ); -} function pspice_to_kicad_menu() { @@ -107,7 +89,7 @@ function pspice_to_kicad_menu() 'title' => 'Delete File', 'description' => 'Delete File', 'page callback' => 'pspice_to_kicad_delete_file', - 'access arguments' => array("convert pspice_to_kicad"), + 'access arguments' => array("delete pspice_to_kicad file"), 'type' => MENU_CALLBACK, ); @@ -148,6 +130,29 @@ function pspice_to_kicad_menu() return $items; } +function pspice_to_kicad_permission() +{ + return array( + "access pspice_to_kicad" => array( + "title" => t("Access pspice_to_kicad"), + "description" => t("Allows users to view converted."), + ), + "manage pspice_to_kicad" => array( + "title" => t("Upload pspice_to_kicad Files"), + "description" => t("Allows users to upload files for pspice to kicad convertor."), + ), + "convert pspice_to_kicad" => array( + "title" => t("Files to be converted"), + "description" => t("Allows admin to see files to be convert from pspice to kicad."), + ), + "delete pspice_to_kicad file" => array( + "title" => t("Files to be deleted"), + "description" => t("Allows admin to delete files from pspice to kicad."), + ), + + ); +} + function pspice_to_kicad_check_valid_filename($file_name) { if (preg_match("/\\s/", $file_name)) { |