- Jul 16, 2016
-
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Oct 22, 2015
-
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
ince this issue only exists in the dev version, it is not covered by the security team process. The commit can happen as an other bug fix. 97487619 introduced an XSS vulnerability, allowed_values are used unfiltered. Signed-off-by: Neil Drumm <drumm@3064.no-reply.drupal.org> Acked-by: Jakob Perry <japerry@45640.no-reply.drupal.org> Acked-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Right now, the links are being rendered directly within the content array, and are hard to organize in a drupal-sort of way. Wouldn't it make sense to use the links system to render them (like flag and other modules do)? This patch introduces that. It also cleans up the link function and allows eventually an alter to be added to the fasttoggle_user_link function so people could inject other links here. (its still somewhat hardcoded but at least a start). Signed-off-by: Jakob Perry <japerry@45640.no-reply.drupal.org> Acked-by: Neil Drumm <drumm@3064.no-reply.drupal.org> Acked-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Fasttoggle currently hardcodes the uid in the view handler. This should be referencing $this->aliases to get the current alias of the uid and user status values. Signed-off-by: Jakob Perry <japerry@45640.no-reply.drupal.org> Acked-by: Neil Drumm <drumm@3064.no-reply.drupal.org> Acked-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Dec 02, 2014
-
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Nov 10, 2014
-
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Oct 14, 2014
-
-
Nigel Cunningham authored
Add initial support for a fasttoggle block. It's currently usable, but there's more work to do. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Prior to this commit, spaces caused a redirect on our Ajax POSTs, turning them into GETs. This confused the callback, making it think the call was non-ajax. This patch adds support for checking whether a path will be rewritten by spaces. If so, we seek to rewrite the callback to the 'correct' version so the POST can continue. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Oct 09, 2014
-
-
Nigel Cunningham authored
Fix the fallback to the normal view if no fasttoggle access - the extraction of the value from the default handler's output was broken. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
This patch removes the assumption that field value keys are numeric. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Address an issue which caused fields not to be rendered fasttogglable any more - properly invoke the field_access function. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Oct 07, 2014
-
-
Nigel Cunningham authored
Fix the contextual links hook, and remove the huge nesting of if statements while we're at it. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Sep 09, 2014
-
-
Nigel Cunningham authored
According to drumm, Drupal 7 hasn't fully moved away from using user_save()'s $edit parameter. Switch to the 'old' way of saving changes to the user object, so that modules such as Bakery don't break. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Apply patch from issue 2328203. Thanks to Drumm. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Aug 16, 2014
-
-
Nigel Cunningham authored
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
It should depend on fasttoggle_node, not itself. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Aug 07, 2014
-
-
Nigel Cunningham authored
Use a temporary variable to avoid the dependency on a PHP 5.4 feature. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Aug 03, 2014
-
-
Nigel Cunningham authored
Update the name of the variable (not denied => undecided) and remove a couple of words that were wrongly left in a previous edit. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Aug 01, 2014
-
-
Nigel Cunningham authored
Make comment and modr8 support depend on fasttoggle_node. They could theoretically be separated, but it would require some duplication of code. The user can always just not enable node options they don't want. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
This patch adds support for a link having a set of allowed values that is a subset of the possible values for the setting. This is needed for toggling comments between disabled, read only and read write. If comments for a node are disabled and Fasttoggle is set up to not allow you to disable comments, an error was displayed on the page. That's now fixed. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Make the code easier to understand by adding further comments in the header for the function and renaming a variable from sitewide to objectwide. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
The views code wasn't checking all the permissions it should. Rely instead on fasttoggle_get_allowed_links having done the correct checks. (It won't return the element if it's not allowed). Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Remove some unneeded lines and rely on fasttoggle_get_allowed_links to do all the access checking and only provide the info we need. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Make the node type settings in fasttoggle forms distinguishable again. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Update the access checks for the modified API. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Add more commenting and ensure that if no function explicitly allows access to a setting, we deny it. This was the other part of the problem with the user status issue. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Remove the global variable by passing results back down the call chain. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Rename fasttoggle_check_access_have_outcome to fasttoggle_check_access in preparation for getting rid of the global variable and passing the result back. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Make the meaning of the "We haven't decided yet" value clearer. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Correct the omission of code applying the per-node type settings for access to links. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
- Jul 30, 2014
-
-
Nigel Cunningham authored
Simplify the inclusion of files within the project. The previous version should be safe, but this is better. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-
Nigel Cunningham authored
Make the moderate toggle default to being disabled, like other toggles. Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
-