google-code-export / cpassman

Automatically exported from code.google.com/p/cpassman
0 stars 0 forks source link

Read Only User Can still Edit, Delete, Copy #265

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Log in as Read Only User
2. Click on an item
3. Edit, Delete or Copy an item

What is the expected output? What do you see instead?
Read only would have exactly read only with out the ability to edit, delete or 
copy an item.

What version of the product are you using?
2.1.6

On what operating system? With what Browser (IEx, FFx, ...)
IE8, FF8

Please provide any additional information below.

I tried modifying where if the session is "user_read_only" to hide those 
buttons but I can't seem to get that to work. Can something similar to this 
logic be built or can you provide me with the correct solution and I can edit 
it?

Original issue reported on code.google.com by hexxamil...@gmail.com on 5 Apr 2012 at 6:46

GoogleCodeExporter commented 9 years ago
I figured this out. I didn't actually remove the function per say but I was 
able to hide the buttons by adding the following under the "user_is_read_only" 
section in the items.load.php class.

$("#menu_button_edit_item").hide();
$("#menu_button_del_item").hide();
$("#menu_button_copy_item").hide();

Original comment by hexxamil...@gmail.com on 5 Apr 2012 at 9:33

GoogleCodeExporter commented 9 years ago
This has been corrected in 2.1.7

Original comment by nils.cpa...@gmail.com on 15 Apr 2012 at 7:07