Commit Graph

3270 Commits

Author SHA1 Message Date
stoletniy
61ae2da1e3 Fix a constant not defined in PHP 5.3 [MAILPOET-1009] 2017-08-30 14:02:29 +03:00
stoletniy
36abd8e5e6 Don't show network activation notice for other plugins
[MAILPOET-1072]
2017-08-30 11:39:42 +02:00
Pavel Dohnal
7e9de1fd07 Fix php notice 2017-08-30 11:25:42 +02:00
Pavel Dohnal
7ac5e65963 Fix php notice 2017-08-30 10:30:16 +02:00
stoletniy
cf992852b5 Validate for unsubscribe link only for MSS sending method [MAILPOET-1050] 2017-08-30 10:16:24 +02:00
Vlad
59482b2bfa Uses init hook to initilize AccessControl 2017-08-29 23:30:35 -04:00
Vlad
053f9e0cdf Adds higher priority to init hook so that it fires before the widgets hook 2017-08-29 23:20:46 -04:00
Vlad
e1cc25239b Maintains code consistency when setting up JSON API
Updates exception handler return statement
2017-08-29 20:33:50 -04:00
Vlad
2f4452ad36 Removes redundant exception handler 2017-08-29 20:28:20 -04:00
Vlad
f453d685d6 Fixes translation not being picked up by makepot 2017-08-29 20:24:04 -04:00
Vlad
2d2b4ca7f0 Moves setup actions from plugins_loaded hook to init hook
Rearranges class methods to follow the order by which they are called
2017-08-29 20:22:19 -04:00
Tautvidas Sipavičius
2f45bb05d7 Fix Endpoint to use single global permission and not array of them
[MAILPOET-1057]
2017-08-29 15:34:35 +03:00
Pavel Dohnal
c75b6bd7eb Show warning only on plugins page
[PREMIUM-28]
2017-08-29 11:22:51 +02:00
Pavel Dohnal
b74be8777a Display warning on Email pages
[PREMIUM-28]
2017-08-29 11:22:51 +02:00
Pavel Dohnal
7463e0d1f1 Update invalid key message
[PREMIUM-28]
2017-08-29 11:22:51 +02:00
stoletniy
33fa496913 Add a message for an already used MSS key [MAILPOET-1070] 2017-08-29 11:10:09 +03:00
stoletniy
eff996e1f8 Unify key state constant names, leave back compat with unlocker [MAILPOET-1070] 2017-08-29 10:58:16 +03:00
stoletniy
c914aedc0d Simplify API response codes handling [MAILPOET-1070] 2017-08-29 09:18:08 +03:00
Vlad
1745b67d64 Adds 403 response code that mirrors 401 behavior 2017-08-28 21:25:54 -04:00
stoletniy
b9bdc86fd9 Add emoji support to newsletter body [MAILPOET-1009] 2017-08-28 19:07:17 +03:00
Tautvidas Sipavičius
e580e6b92b Merge pull request #1041 from mailpoet/access_control
Allows granular control of access to various parts of the plugin [MAILPOET-1057] [MAILPOET-1048]
2017-08-28 16:48:47 +03:00
Tautvidas Sipavičius
62ce7c0437 Merge pull request #1062 from mailpoet/wp_user_subscription_update_fix
Prevents WP subscribers' first/last name from being erased [MAILPOET-1062]
2017-08-28 12:57:25 +03:00
Vlad
c1e542cb5a Reschedules past due scheduled queues when reactivating notification 2017-08-28 09:20:17 +02:00
stoletniy
cc5227ca0d Don't track sent ALC posts for welcome and standard emails (always send the latest posts) [MAILPOET-1069] 2017-08-25 15:51:45 +03:00
Vlad
26bccd95d4 Uses method vs. accessing class internals to get user capability 2017-08-24 13:58:54 -04:00
Vlad
af58814fe7 Moves AccessControl intialization outside of Router to Initializer 2017-08-24 13:56:17 -04:00
Vlad
7d9b4b31aa Removes unused constructor parameter 2017-08-24 13:37:49 -04:00
Vlad
8a8108b41d Prevents WP subscribers' first/last name from being erased when updating
subscription
2017-08-24 13:19:42 -04:00
mrcasual
d92b1f57bd Merge pull request #1060 from mailpoet/mp2_forms_fix
Don't process the wysija_form shortcode to allow MP2 forms to work [MAILPOET-1067]
2017-08-24 10:40:10 -04:00
mrcasual
dc11046ad1 Fixes undefined JS error when vendor.js is loaded deferred
[MAILPOET-1026]
2017-08-24 13:37:15 +02:00
Vlad
05dca3d2ce Excludes honeypot from subscription management form 2017-08-24 11:17:40 +02:00
stoletniy
510cacf2fd Don't process the wysija_form shortcode to allow MP2 forms to work [MAILPOET-1067] 2017-08-24 08:22:10 +03:00
Vlad
eac6b1b414 Corrects coding style 2017-08-23 11:45:33 -04:00
Vlad
316fa91a10 Moves AccessControl initialization outside of API to Initializer 2017-08-23 11:28:09 -04:00
Vlad
28320cdbb6 Updates permission validation method on AccessControl
Adds/updates unit tests
2017-08-23 11:28:08 -04:00
Vlad
78429d8f91 Validates global permission at the AccessControl level
Changes error response code on invalid permission
2017-08-23 11:27:54 -04:00
Vlad
1b756ef0b2 Adds access management to router and updates endpoints accordingly 2017-08-22 09:06:20 -04:00
Vlad
5553817f9a Creates method to get user's first capability 2017-08-22 09:06:20 -04:00
Vlad
4b7fb3ae3d Updates access permission names to improve clarity 2017-08-22 09:06:20 -04:00
Vlad
efa231b08f Removes AccessControl from Migrator and Changelog 2017-08-22 09:06:20 -04:00
Vlad
8d8dfaa11f Uses Intializer to check permissions before running Activator 2017-08-22 09:06:20 -04:00
Vlad
5ba2c4bc3a Removes AccessControl from individual API endpoints 2017-08-22 09:06:20 -04:00
Vlad
788494ec47 Updates API initialization 2017-08-22 09:06:20 -04:00
Vlad
5e7f9e3edf Passes AccessControl to JSON API via constructor parameter
Removes passing AccessControl to individual API endpoints
2017-08-22 09:06:20 -04:00
Vlad
2e5554a3af Refactors AccessControl and passes it as dependency to JSON API and Menu 2017-08-22 09:06:20 -04:00
Vlad
51fbf29031 Modifies Activator to use AccessControl 2017-08-22 09:06:19 -04:00
Vlad
c3c6ce989c Modifies Menu to use AccessControl 2017-08-22 09:06:19 -04:00
Vlad
a241d0c7bc Modifies JSON API to use AccessControl 2017-08-22 09:06:19 -04:00
Vlad
632bce7894 Adds AccessControl class that defines permissions for major plugin
operations
2017-08-22 09:04:39 -04:00
Vlad
1151354278 Conditionally uses set_time_limit() when function is not disabled 2017-08-22 09:04:39 -04:00