Openmaize.IdCheck

This module contains functions that can perform optional checks based on the user id.

They can be used as they are, but they also serve as examples of how to write such functions.

For these functions to work, you need to have the start of the path and the start of the path + “/:id” in the protected map in the config. For example, the following entry protects “/users” and checks ids under “/users”:

config: openmaize,
  protected: %{"/users" => ["user"], "/users/:id" => ["user"]}
Source

Summary

id_noedit(arg1, data, path, match)

Function to protect another user’s page from editing. However, the user is allowed to view the page

id_noshow(arg1, data, path, match)

Function to protect another user’s page. In this case, the page cannot be viewed as well

Functions

id_noedit(arg1, data, path, match)

Function to protect another user’s page from editing. However, the user is allowed to view the page.

Source
id_noshow(arg1, data, path, match)

Function to protect another user’s page. In this case, the page cannot be viewed as well.

Source