diff options
Diffstat (limited to 'modules/gallery/libraries/Identity.php')
| -rw-r--r-- | modules/gallery/libraries/Identity.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Identity.php b/modules/gallery/libraries/Identity.php index a24e6226..fec822db 100644 --- a/modules/gallery/libraries/Identity.php +++ b/modules/gallery/libraries/Identity.php @@ -93,6 +93,17 @@ class Identity_Core { } /** + * Determine if a feature is supported by the driver. + * + * @param string $feature the name of the feature to check + * @return boolean true if supported + */ + public function is_writable() { + return !empty($this->config["allow_updates"]); + } + + + /** * Return the guest user. * * @todo consider caching |
