diff options
author | msquare <msquare@notrademark.de> | 2016-11-17 13:16:15 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-11-17 13:16:15 +0100 |
commit | b5784e5961c0121f6c4d9f27f75473c56c727a5a (patch) | |
tree | ab40c65ff2d2244cbefddee1e382c300cad184ce /includes/controller | |
parent | d64f96b6a1823dedb8b9b30d1b3682b4537f3103 (diff) |
fix order problem
Diffstat (limited to 'includes/controller')
-rw-r--r-- | includes/controller/angeltypes_controller.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php index a39e29ca..7af05175 100644 --- a/includes/controller/angeltypes_controller.php +++ b/includes/controller/angeltypes_controller.php @@ -85,16 +85,16 @@ function angeltype_delete_controller() { function angeltype_edit_controller() { global $privileges, $user; - if (! User_is_AngelType_supporter($user, $angeltype)) { - redirect(page_link_to('angeltypes')); - } - // In supporter mode only allow to modify description $supporter_mode = ! in_array('admin_angel_types', $privileges); if (isset($_REQUEST['angeltype_id'])) { // Edit existing angeltype $angeltype = load_angeltype(); + + if (! User_is_AngelType_supporter($user, $angeltype)) { + redirect(page_link_to('angeltypes')); + } } else { // New angeltype if ($supporter_mode) { |