Fix temporary permissions
This commit is contained in:
@@ -122,7 +122,7 @@ if (!class_exists('phrases')) {
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('phrase_detail_delete', 'temp');
|
||||
|
||||
//execute delete
|
||||
@@ -204,7 +204,7 @@ if (!class_exists('phrases')) {
|
||||
if (!empty($array) && is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('phrase_detail_delete', 'temp');
|
||||
|
||||
//execute delete
|
||||
@@ -398,7 +398,7 @@ if (!class_exists('phrases')) {
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('phrase_detail_add', 'temp');
|
||||
|
||||
//save the array
|
||||
|
||||
Reference in New Issue
Block a user