summaryrefslogtreecommitdiffstats
path: root/lib/class/access.class.php
diff options
context:
space:
mode:
authorElias Probst <mail@eliasprobst.eu>2010-12-08 08:39:38 -0400
committerKarl Vollmer <vollmer@ampache.org>2010-12-08 08:39:38 -0400
commite0f8bbc6385bc83fcbb68d93ee0509a1aa0e6b89 (patch)
treee4fae1151f7df9d3d883a6117ec5e730a184ee22 /lib/class/access.class.php
parent2682a69a36cd16a7863d6ac1d94e8523f6c3c98f (diff)
downloadampache-e0f8bbc6385bc83fcbb68d93ee0509a1aa0e6b89.tar.gz
ampache-e0f8bbc6385bc83fcbb68d93ee0509a1aa0e6b89.tar.bz2
ampache-e0f8bbc6385bc83fcbb68d93ee0509a1aa0e6b89.zip
Squashed commit of the following:
commit 8a5127572c89f28f060d3ad0819136f79b65faef Author: Elias Probst <mail@eliasprobst.eu> Date: Wed Dec 8 03:51:20 2010 +0100 Rewrote the error message for duplicate ACLs. Expose the error message to the UI.
Diffstat (limited to 'lib/class/access.class.php')
-rw-r--r--lib/class/access.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/class/access.class.php b/lib/class/access.class.php
index 93bfbfd6..2623e38e 100644
--- a/lib/class/access.class.php
+++ b/lib/class/access.class.php
@@ -158,7 +158,8 @@ class Access {
// Check existing ACL's to make sure we're not duplicating values here
if (self::exists($data)) {
- debug_event('ACL Create','Error did not create duplicate ACL entrie for ' . $data['start'] . ' - ' . $data['end'],'1');
+ debug_event('ACL Create','Error: An ACL equal to the created one does already exist. Not adding another one: ' . $data['start'] . ' - ' . $data['end'],'1');
+ Error::add('general',_('Duplicate ACL defined'));
return false;
}