<if sb-user-op></if>
Provided by module: CMS: Tags
Checks if a authenticated user has the permissions to perform a
operation on a specified file or directory. Note: If the
attribute path is omitted the current selected file is
used by default.
To better manage errors, use this plugin together with <sb-error>.
Note: This tag should be used together with <sb-edit-area>sb-edit-area.
Attributes
- sb-user-op="operation"
-
Check if the user has the permissions to perform this operation.
Operation | Check if user may |
newfile
|
add a new file
|
newdir
|
add a new directory
|
set_metadata
|
change metadata
|
move
|
move/rename a file or directory
|
copy
|
copy a file or directory
|
commit
|
commit local files
|
delete
|
delete a file or directory
|
log
|
view/show revision log
|
view
|
view a file
|
revert
|
revert a file to an old revision
|
- path="absolute or relative path to a file or directory"
-
Check if the user may perform a operation on this file. If this
attribute is ommited, the current file will be used.
<if sb-user-op="delete" path="&var.filename;">
&var.filename; may be deleted by you.
</if> |