fusionpbx/resources/classes
Nate a591c87776 Database Class Support for "...ies" Table Names (#4321)
Currently, the permission checks within the class try to singularize the table name, then check for permissions based on the result.  This PR modifies the private singular() function to support table names that end in "...ies", where an _add or _edit permission likely uses a 'y' instead.  An example would be where inserting records into v_event_categories, the class should probably look for an "event_category_add" permission, instead of "event_categorie_add".  Likewise for update queries.  

This proposed change isn't foolproof, obviously. In the case of inserting or updating records in a table named v_pies, it would fail to suffice.  You're welcome to integrate a better solution, if one exists.
2019-06-30 15:11:15 -06:00
..
event/handler WhitespaceClean-resources/classes 2016-03-11 12:08:26 +00:00
array_order.php Move the class files from includes to the resources directory. 2013-07-06 07:16:58 +00:00
cache.php Update cache.php 2018-08-10 17:41:02 -06:00
captcha.php Create captcha.php 2019-04-24 19:43:09 -06:00
config.php Add support for PostgreSQL TLS (#4262) 2019-06-05 21:10:58 -06:00
database.php Database Class Support for "...ies" Table Names (#4321) 2019-06-30 15:11:15 -06:00
destinations.php Update destinations.php 2019-05-05 19:34:56 -06:00
directory.php WhitespaceClean-resources/classes 2016-03-11 12:08:26 +00:00
domains.php Add support for PostgreSQL TLS (#4262) 2019-06-05 21:10:58 -06:00
event_socket.php Update event_socket.php 2017-01-11 14:43:45 -07:00
events.php Add the app session languages array as a list of available languages that have been translated for that application. 2015-01-18 07:52:28 +00:00
fax.php Fix so fusionpbx doesn't fail on servers with php versions later than 5. (e.g. php7). 2016-04-25 20:52:21 -05:00
file.php Update file.php 2016-08-13 13:24:32 -06:00
groups.php Update groups.php 2017-01-11 14:39:40 -07:00
logging.php Fix. Create log file only if necessary. 2015-08-12 12:44:42 +04:00
menu.php Update menu.php 2019-03-08 11:02:09 -07:00
message.php Update message.php 2019-05-30 01:55:07 -06:00
permissions.php remove debug lines in permissions (#2658) 2017-06-09 13:32:31 -06:00
ringbacks.php Update ringbacks.php 2018-04-10 21:14:12 -06:00
root.php Cleanup the indentation ... tabs and whitespace after the last pull request. 2016-04-28 16:56:44 -06:00
schema.php Revert "[4.5] Fix the ALTER TABLE (#4097)" 2019-05-30 00:56:51 -06:00
sounds.php Update sounds.php 2018-02-10 08:46:15 -07:00
switch_settings.php fix condition (#2298) 2017-01-17 10:16:13 -07:00
template.php \r\n --> \n 2016-04-25 20:30:23 -05:00
text.php White space cleanup on the text class. 2019-05-25 23:40:51 -06:00
tones.php Update tones.php 2018-03-29 19:26:01 -06:00
users.php \r\n --> \n 2016-04-25 20:30:23 -05:00
vcard.php Update the constructor in the vcard class. 2016-01-20 23:56:06 -07:00