Koha/koha-tmpl/intranet-tmpl/prog/en
Marc Véron 1a54f0916e Bug 13910: Prevent delete of one's own patron account
This patch adds a check to prevent deleting the user's own account.
Additionali it fixes a "missing link" in moremember.pl and wrong comparisions in moremember.tt regarding other forbidden deleting.

To test:
- Apply patch
- Create a user with sufficient privileges to delete users
- Log in as this new user
- Try to delete this user. Confirm message box "Are you sure..."
- Confirm that you get a message "Not allowed to delete own account" and that the user still exists.

Bonus test:
Try to trigger other forbidden deletions (see members/deletemem.pl): 'CANT_DELETE_STAFF', 'CANT_DELETE_OTHERLIBRARY', 'CANT_DELETE'
(You can fake it by using an URL like: /cgi-bin/koha/members/moremember.pl?borrowernumber=115&error=CANT_DELETE_STAFF  etc.)
Without patch, no message appears. With patch, messages appear as appropriate.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

NOTE: Attempted all CANT combinations. From reading the code,
this is kind of an important patch, because I'm not sure
deleting error messages work at all right now based on what
I read.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-05-14 11:45:40 -03:00
..
css Bug 13364: Fix table id + software error 2015-05-06 11:17:02 -03:00
data
includes Bug 14127: Typo in message preference form - "mesage" 2015-05-06 10:39:54 -03:00
js Bug 11464: Prevent wrong "nothing to save" message on saving syspref 2015-05-07 11:01:16 -03:00
lib/yui
modules Bug 13910: Prevent delete of one's own patron account 2015-05-14 11:45:40 -03:00
xslt Bug 13381 - RDA: 245 field changes in XSLT 2015-04-20 11:49:20 -03:00
columns.def Bug 13142 - Change "mobile phone" label back to "other phone" 2015-02-13 13:52:10 -03:00